aboutsummaryrefslogtreecommitdiff
path: root/src/dv
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-12-10 14:37:05 +0000
committerChristian Grothoff <christian@grothoff.org>2013-12-10 14:37:05 +0000
commitaa58ab7ecb34a3e40340316b62daacb147467310 (patch)
treef42bb51f36a36c04f8c2096c734d8bfa52bed3c8 /src/dv
parent4aa4a289f9cc316333b8de062997891e8b32a24c (diff)
downloadgnunet-aa58ab7ecb34a3e40340316b62daacb147467310.tar.gz
gnunet-aa58ab7ecb34a3e40340316b62daacb147467310.zip
-do not crash if we get NACKs or ACKs for disconnected peers
Diffstat (limited to 'src/dv')
-rw-r--r--src/dv/dv_api.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dv/dv_api.c b/src/dv/dv_api.c
index eb86b7aec..b93fa79fb 100644
--- a/src/dv/dv_api.c
+++ b/src/dv/dv_api.c
@@ -434,6 +434,12 @@ handle_message_receipt (void *cls,
434 ack = (const struct GNUNET_DV_AckMessage *) msg; 434 ack = (const struct GNUNET_DV_AckMessage *) msg;
435 peer = GNUNET_CONTAINER_multipeermap_get (sh->peers, 435 peer = GNUNET_CONTAINER_multipeermap_get (sh->peers,
436 &ack->target); 436 &ack->target);
437 if (NULL == peer)
438 {
439 GNUNET_break (0);
440 reconnect (sh);
441 return;
442 }
437 for (th = peer->head; NULL != th; th = th->next) 443 for (th = peer->head; NULL != th; th = th->next)
438 { 444 {
439 if (th->uid != ntohl (ack->uid)) 445 if (th->uid != ntohl (ack->uid))