fix
authorChristian Grothoff <christian@grothoff.org>
Thu, 4 Aug 2011 09:33:13 +0000 (09:33 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 4 Aug 2011 09:33:13 +0000 (09:33 +0000)
src/transport/gnunet-service-transport.c

index f05bf233625a113ed32f952109229378668ae760..58b2c630a69645b7072f64f18a9e4865466e1905 100644 (file)
@@ -6275,9 +6275,10 @@ client_disconnect_notification (void *cls,
       pos->message_count--;
       GNUNET_free (mqe);
     }
-  GNUNET_CONTAINER_multihashmap_iterate (neighbours,
-                                        &null_mq_client_pointers,
-                                        pos);
+  if (NULL != neighbours)
+    GNUNET_CONTAINER_multihashmap_iterate (neighbours,
+                                          &null_mq_client_pointers,
+                                          pos);
   if (prev == NULL)
     clients = pos->next;
   else