From 9bf3b46c9a8c4b9aa2c804a22f2d84fe2689d49c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 18 Nov 2011 10:03:21 +0000 Subject: [PATCH] fix --- src/ats/gnunet-service-ats_reservations.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.25.1