[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r9894 - GNUnet/src/applications/dv/module
From: |
gnunet |
Subject: |
[GNUnet-SVN] r9894 - GNUnet/src/applications/dv/module |
Date: |
Thu, 24 Dec 2009 21:56:54 +0100 |
Author: grothoff
Date: 2009-12-24 21:56:54 +0100 (Thu, 24 Dec 2009)
New Revision: 9894
Modified:
GNUnet/src/applications/dv/module/dv.c
Log:
assertion does not hold, core can create 'spurious' disconnects for peers that
we failed to connect to and hence were never given a connect notification
Modified: GNUnet/src/applications/dv/module/dv.c
===================================================================
--- GNUnet/src/applications/dv/module/dv.c 2009-12-24 19:51:08 UTC (rev
9893)
+++ GNUnet/src/applications/dv/module/dv.c 2009-12-24 20:56:54 UTC (rev
9894)
@@ -844,7 +844,11 @@
GNUNET_mutex_lock (ctx.dvMutex);
neighbor =
GNUNET_multi_hash_map_get (ctx.direct_neighbors, &peer->hashPubKey);
- GNUNET_GE_ASSERT (NULL, neighbor != NULL);
+ if (neighbor == NULL)
+ {
+ GNUNET_mutex_unlock (ctx.dvMutex);
+ return;
+ }
while (NULL != (referee = neighbor->referee_head))
distant_neighbor_free (referee);
GNUNET_GE_ASSERT (NULL, neighbor->referee_tail == NULL);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r9894 - GNUnet/src/applications/dv/module,
gnunet <=