net/loolnb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit 364b11086ea30c97013e737ea6a932e819764ae9 Author: Ashod Nakashian <ashod.nakash...@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 <ashnak...@gmail.com> Tested-by: Ashod Nakashian <ashnak...@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 ... _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits