From: Christian Grothoff Date: Fri, 18 Nov 2011 10:03:21 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~15880 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9bf3b46c9a8c4b9aa2c804a22f2d84fe2689d49c;p=oweals%2Fgnunet.git fix --- diff --git a/src/ats/gnunet-service-ats_reservations.c b/src/ats/gnunet-service-ats_reservations.c index cb92ac748..d1212dd00 100644 --- a/src/ats/gnunet-service-ats_reservations.c +++ b/src/ats/gnunet-service-ats_reservations.c @@ -92,9 +92,10 @@ GAS_reservations_set_bandwidth (const struct GNUNET_PeerIdentity *peer, struct GNUNET_BANDWIDTH_Tracker *tracker; tracker = GNUNET_CONTAINER_multihashmap_get (trackers, &peer->hashPubKey); - GNUNET_break (NULL != tracker); if (0 == ntohl (bandwidth_in.value__)) { + if (NULL == tracker) + return; GNUNET_assert (GNUNET_YES == GNUNET_CONTAINER_multihashmap_remove (trackers, &peer->hashPubKey,