gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r9912 - GNUnet/src/applications/dv/module


From: gnunet
Subject: [GNUnet-SVN] r9912 - GNUnet/src/applications/dv/module
Date: Sun, 27 Dec 2009 19:47:58 +0100

Author: grothoff
Date: 2009-12-27 19:47:58 +0100 (Sun, 27 Dec 2009)
New Revision: 9912

Modified:
   GNUnet/src/applications/dv/module/dv.c
Log:
fix

Modified: GNUnet/src/applications/dv/module/dv.c
===================================================================
--- GNUnet/src/applications/dv/module/dv.c      2009-12-27 15:01:48 UTC (rev 
9911)
+++ GNUnet/src/applications/dv/module/dv.c      2009-12-27 18:47:58 UTC (rev 
9912)
@@ -533,6 +533,12 @@
   GNUNET_mutex_lock (ctx.dvMutex);
   dn = GNUNET_multi_hash_map_get (ctx.direct_neighbors,
                                   &sender->hashPubKey);
+  if (dn == NULL)
+    {
+      GNUNET_GE_BREAK (NULL, 0);
+      GNUNET_mutex_unlock (ctx.dvMutex);
+      return GNUNET_OK;
+    }
   sid = ntohl (incoming->sender);
   pos = dn->referee_head;
   while ((NULL != pos) && (pos->referrer_id != sid))





reply via email to

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