From: Christian Grothoff Date: Thu, 2 Feb 2017 09:21:54 +0000 (+0100) Subject: fix sanity check in dht_api: we are passing 32-byte PIDs, not 64-byte hashes X-Git-Tag: taler-0.2.1~200 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=761447f2122038ce821780f6de37e5355f0ee301;p=oweals%2Fgnunet.git fix sanity check in dht_api: we are passing 32-byte PIDs, not 64-byte hashes --- 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, 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;