-install entry in DHT
authorChristian Grothoff <christian@grothoff.org>
Sun, 18 Oct 2015 20:51:39 +0000 (20:51 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 18 Oct 2015 20:51:39 +0000 (20:51 +0000)
src/dht/gnunet-service-dht_neighbours.c

index 097253d069d9e63d2628e862ef7fb11cff6e37d6..487cec375a049e93323d3057f44e69bd7df72007 100644 (file)
@@ -586,7 +586,14 @@ try_connect (const struct GNUNET_PeerIdentity *pid,
     return;
   }
   if (NULL == ci)
+  {
     ci = GNUNET_new (struct ConnectInfo);
+    GNUNET_assert (GNUNET_OK ==
+                   GNUNET_CONTAINER_multipeermap_put (all_desired_peers,
+                                                      pid,
+                                                      ci,
+                                                      GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY));
+  }
   if ( (NULL != GDS_transport_handle) &&
        (NULL != ci->oh) &&
        (NULL != h) )