diff options
Diffstat (limited to 'src/dv/dv_api.c')
-rw-r--r-- | src/dv/dv_api.c | 6 |
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)) |