Fixed masking for continuations (#1406)

This commit is contained in:
Jan-Mirko Otter
2022-01-25 13:04:31 +01:00
committed by GitHub
parent 49da3cb27e
commit 43669bb852
+1 -1
View File
@@ -401,7 +401,7 @@ protected:
if (isServer) {
/* No need to unmask if mask is 0 */
uint32_t nullmask = 0;
if (!memcmp(wState->mask, &nullmask, sizeof(uint32_t))) {
if (memcmp(wState->mask, &nullmask, sizeof(uint32_t))) {
if /*constexpr*/ (LIBUS_RECV_BUFFER_LENGTH == length) {
unmaskAll(src, wState->mask);
} else {