fixing 1720
authorChristian Grothoff <christian@grothoff.org>
Thu, 23 Jun 2011 10:14:26 +0000 (10:14 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 23 Jun 2011 10:14:26 +0000 (10:14 +0000)
src/fs/gnunet-service-fs_cp.c

index c2bb029009bf6fce242c104c7ab36aad022b0f0d..56b85fe1ddd64386dd410c160d95b9c58b231d68 100644 (file)
@@ -686,6 +686,7 @@ revive_migration (void *cls,
 struct GSF_ConnectedPeer *
 GSF_peer_get_ (const struct GNUNET_PeerIdentity *peer)
 {
+  if (NULL == cp_map) return NULL;
   return GNUNET_CONTAINER_multihashmap_get (cp_map,
                                            &peer->hashPubKey);
 }