fix
authorChristian Grothoff <christian@grothoff.org>
Tue, 15 Mar 2011 14:03:10 +0000 (14:03 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 15 Mar 2011 14:03:10 +0000 (14:03 +0000)
src/fs/gnunet-service-fs_pe.c

index 816328392646fabccbac48743210ae63d4c93678..7caf373d0e3e9885389867d3c31d28f4b2cb4109 100644 (file)
@@ -338,6 +338,8 @@ GSF_plan_notify_peer_disconnect_ (const struct GSF_ConnectedPeer *cp)
   GSF_connected_peer_get_identity_ (cp, &id);
   pp = GNUNET_CONTAINER_multihashmap_get (plans,
                                          &id.hashPubKey);
+  if (NULL == pp)
+    return; /* nothing was ever planned for this peer */
   GNUNET_CONTAINER_multihashmap_remove (plans,
                                        &id.hashPubKey,
                                        pp);