From 761447f2122038ce821780f6de37e5355f0ee301 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 2 Feb 2017 10:21:54 +0100 Subject: [PATCH] fix sanity check in dht_api: we are passing 32-byte PIDs, not 64-byte hashes --- src/dht/dht_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1