-doxygen
[oweals/gnunet.git] / src / dv / dv_api.c
index eb86b7aec735810da4fd14fa35a16957af3b66da..7ea00599501ebeb25c6c05c97dd5700f0fdd85fa 100644 (file)
@@ -434,6 +434,8 @@ handle_message_receipt (void *cls,
     ack = (const struct GNUNET_DV_AckMessage *) msg;
     peer = GNUNET_CONTAINER_multipeermap_get (sh->peers,
                                               &ack->target);
+    if (NULL == peer)
+      return; /* this happens, just ignore */
     for (th = peer->head; NULL != th; th = th->next)
     {
       if (th->uid != ntohl (ack->uid))