gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: fix sanity check in dht_api


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: fix sanity check in dht_api: we are passing 32-byte PIDs, not 64-byte hashes
Date: Thu, 02 Feb 2017 10:21:57 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 761447f21 fix sanity check in dht_api: we are passing 32-byte PIDs, 
not 64-byte hashes
761447f21 is described below

commit 761447f2122038ce821780f6de37e5355f0ee301
Author: Christian Grothoff <address@hidden>
AuthorDate: Thu Feb 2 10:21:54 2017 +0100

    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;

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]