diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-02 10:21:54 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-02 10:21:54 +0100 |
commit | 761447f2122038ce821780f6de37e5355f0ee301 (patch) | |
tree | 74dcefaaa137f428254128c0a84899c02281fc18 /src/dht/dht_api.c | |
parent | b1f8b32c7bf518e10f6c87bd0479b5110a7fec26 (diff) | |
download | gnunet-761447f2122038ce821780f6de37e5355f0ee301.tar.gz gnunet-761447f2122038ce821780f6de37e5355f0ee301.zip |
fix sanity check in dht_api: we are passing 32-byte PIDs, not 64-byte hashes
Diffstat (limited to 'src/dht/dht_api.c')
-rw-r--r-- | src/dht/dht_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dht/dht_api.c b/src/dht/dht_api.c index 66eaf1064..070d248ed 100644 --- a/src/dht/dht_api.c +++ b/src/dht/dht_api.c | |||
@@ -503,7 +503,7 @@ check_monitor_get (void *cls, | |||
503 | uint16_t msize = ntohs (msg->header.size) - sizeof (*msg); | 503 | uint16_t msize = ntohs (msg->header.size) - sizeof (*msg); |
504 | 504 | ||
505 | if ( (plen > UINT16_MAX) || | 505 | if ( (plen > UINT16_MAX) || |
506 | (plen * sizeof (struct GNUNET_HashCode) != msize) ) | 506 | (plen * sizeof (struct GNUNET_PeerIdentity) != msize) ) |
507 | { | 507 | { |
508 | GNUNET_break (0); | 508 | GNUNET_break (0); |
509 | return GNUNET_SYSERR; | 509 | return GNUNET_SYSERR; |