[Libreoffice-commits] online.git: Branch 'private/Ashod/nonblocking' - net/loolnb.cpp
Ashod Nakashian
ashod.nakashian at collabora.co.uk
Sun Feb 19 08:05:36 UTC 2017
net/loolnb.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 364b11086ea30c97013e737ea6a932e819764ae9
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date: Sun Feb 19 03:02:26 2017 -0500
nb: unmask only to the payload end
Change-Id: I511db5fea51ff8c623ca894f9d512749ef9f5a1b
Reviewed-on: https://gerrit.libreoffice.org/34424
Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
Tested-by: Ashod Nakashian <ashnakash at gmail.com>
diff --git a/net/loolnb.cpp b/net/loolnb.cpp
index bb18a81..b33ed7e 100644
--- a/net/loolnb.cpp
+++ b/net/loolnb.cpp
@@ -182,7 +182,7 @@ public:
if (hasMask)
{
- for (size_t i = 0; i < len; ++i)
+ for (size_t i = 0; i < payloadLen; ++i)
data[i] = data[i] ^ mask[i % 4];
// FIXME: copy and un-mask at the same time ...
More information about the Libreoffice-commits
mailing list