From: Christian Grothoff Date: Thu, 24 Nov 2011 10:23:40 +0000 (+0000) Subject: check return value X-Git-Tag: initial-import-from-subversion-38251~15824 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=01c20c1ab506f7b984d317b1e94b63969d78fa42;p=oweals%2Fgnunet.git check return value --- diff --git a/src/nse/gnunet-service-nse.c b/src/nse/gnunet-service-nse.c index f1c7661e2..32b81b080 100644 --- a/src/nse/gnunet-service-nse.c +++ b/src/nse/gnunet-service-nse.c @@ -1137,8 +1137,9 @@ handle_core_connect (void *cls, const struct GNUNET_PeerIdentity *peer, #endif peer_entry = GNUNET_malloc (sizeof (struct NSEPeerEntry)); peer_entry->id = *peer; - GNUNET_CONTAINER_multihashmap_put (peers, &peer->hashPubKey, peer_entry, - GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY); + GNUNET_assert (GNUNET_OK == + GNUNET_CONTAINER_multihashmap_put (peers, &peer->hashPubKey, peer_entry, + GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY)); peer_entry->transmit_task = GNUNET_SCHEDULER_add_delayed (get_transmit_delay (-1), &transmit_task, peer_entry);