From: Christian Grothoff Date: Tue, 15 Mar 2011 14:03:10 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~18964 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=00a4b2245745e2fd8703f47f0f8cd040a3eff41d;p=oweals%2Fgnunet.git fix --- diff --git a/src/fs/gnunet-service-fs_pe.c b/src/fs/gnunet-service-fs_pe.c index 816328392..7caf373d0 100644 --- a/src/fs/gnunet-service-fs_pe.c +++ b/src/fs/gnunet-service-fs_pe.c @@ -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);