fix sanity check in dht_api: we are passing 32-byte PIDs, not 64-byte hashes
authorChristian Grothoff <christian@grothoff.org>
Thu, 2 Feb 2017 09:21:54 +0000 (10:21 +0100)
committerChristian Grothoff <christian@grothoff.org>
Thu, 2 Feb 2017 09:21:54 +0000 (10:21 +0100)
src/dht/dht_api.c

index 66eaf10647dad7e6a424e3440593f030603d4c46..070d248edda2d5edbc107d7846f59c8e51271036 100644 (file)
@@ -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;