From 00a4b2245745e2fd8703f47f0f8cd040a3eff41d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 15 Mar 2011 14:03:10 +0000 Subject: [PATCH] fix --- src/fs/gnunet-service-fs_pe.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.25.1