projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
-removing 2nd argument from GNUNET_CLIENT_disconnect as it was virtually always GNUNE...
[oweals/gnunet.git]
/
src
/
util
/
crypto_crc.c
diff --git
a/src/util/crypto_crc.c
b/src/util/crypto_crc.c
index f86fe56969ba5785ccfc2ad1005253504c687506..8bccf6b691625aeaf4709c27f6422ed68939f725 100644
(file)
--- a/
src/util/crypto_crc.c
+++ b/
src/util/crypto_crc.c
@@
-129,10
+129,11
@@
GNUNET_CRYPTO_crc16_step (uint32_t sum, const void *buf, size_t len)
for (; len >= 2; len -= 2)
sum += *(hdr++);
if (len == 1)
- sum +=
*((unsigned char *) hdr
);
+ sum +=
(*hdr) & ntohs(0xFF00
);
return sum;
}
+
/**
* Convert results from GNUNET_CRYPTO_crc16_step to final crc16.
*