diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-03-15 14:03:10 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-03-15 14:03:10 +0000 |
commit | 00a4b2245745e2fd8703f47f0f8cd040a3eff41d (patch) | |
tree | 95dc84cbb51e6691fb3c4e841d515c7597bf4260 /src | |
parent | 88d047a2472a83a4552507ff99ad23af27852dcc (diff) | |
download | gnunet-00a4b2245745e2fd8703f47f0f8cd040a3eff41d.tar.gz gnunet-00a4b2245745e2fd8703f47f0f8cd040a3eff41d.zip |
fix
Diffstat (limited to 'src')
-rw-r--r-- | src/fs/gnunet-service-fs_pe.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
338 | GSF_connected_peer_get_identity_ (cp, &id); | 338 | GSF_connected_peer_get_identity_ (cp, &id); |
339 | pp = GNUNET_CONTAINER_multihashmap_get (plans, | 339 | pp = GNUNET_CONTAINER_multihashmap_get (plans, |
340 | &id.hashPubKey); | 340 | &id.hashPubKey); |
341 | if (NULL == pp) | ||
342 | return; /* nothing was ever planned for this peer */ | ||
341 | GNUNET_CONTAINER_multihashmap_remove (plans, | 343 | GNUNET_CONTAINER_multihashmap_remove (plans, |
342 | &id.hashPubKey, | 344 | &id.hashPubKey, |
343 | pp); | 345 | pp); |