projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1f8b32
)
fix sanity check in dht_api: we are passing 32-byte PIDs, not 64-byte hashes
author
Christian Grothoff
<christian@grothoff.org>
Thu, 2 Feb 2017 09:21:54 +0000
(10:21 +0100)
committer
Christian Grothoff
<christian@grothoff.org>
Thu, 2 Feb 2017 09:21:54 +0000
(10:21 +0100)
src/dht/dht_api.c
patch
|
blob
|
history
diff --git
a/src/dht/dht_api.c
b/src/dht/dht_api.c
index 66eaf10647dad7e6a424e3440593f030603d4c46..070d248edda2d5edbc107d7846f59c8e51271036 100644
(file)
--- a/
src/dht/dht_api.c
+++ b/
src/dht/dht_api.c
@@
-503,7
+503,7
@@
check_monitor_get (void *cls,
uint16_t msize = ntohs (msg->header.size) - sizeof (*msg);
if ( (plen > UINT16_MAX) ||
- (plen * sizeof (struct GNUNET_
HashCode
) != msize) )
+ (plen * sizeof (struct GNUNET_
PeerIdentity
) != msize) )
{
GNUNET_break (0);
return GNUNET_SYSERR;