diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-03-31 10:26:51 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-03-31 10:26:51 +0200 |
commit | cc4b56b6710624c069642d1a510d0060949fe5b9 (patch) | |
tree | d74fd412563152e6df9733cdb41c33ea97655738 /src/websock.c | |
parent | 20f5ff02e455580c6e7129479f3328787b3333ff (diff) |
fix bug
Change-Id: I5d905a3f74a18ae2bad8b907b1f4e61c2104117f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/websock.c')
-rw-r--r-- | src/websock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/websock.c b/src/websock.c index dc0b5f44..41e47a0a 100644 --- a/src/websock.c +++ b/src/websock.c @@ -377,7 +377,7 @@ ssize_t websock_read(struct websock * ws, void *buffer, size_t size) } b32 = (uint32_t *) b8; while (size >= sizeof(uint32_t)) { - *b32++ ^= m; + *b32++ ^= mask; size -= sizeof(uint32_t); } b8 = (uint8_t *) b32; |