diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-18 10:03:21 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-18 10:03:21 +0000 |
commit | 9bf3b46c9a8c4b9aa2c804a22f2d84fe2689d49c (patch) | |
tree | 28bbc19f3ebe45f84b49b2927c909c9d721a0e70 /src/ats | |
parent | 2a769e31b4ff1a0ed2f250c7335c846f3f9b8efd (diff) | |
download | gnunet-9bf3b46c9a8c4b9aa2c804a22f2d84fe2689d49c.tar.gz gnunet-9bf3b46c9a8c4b9aa2c804a22f2d84fe2689d49c.zip |
fix
Diffstat (limited to 'src/ats')
-rw-r--r-- | src/ats/gnunet-service-ats_reservations.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, | |||
92 | struct GNUNET_BANDWIDTH_Tracker *tracker; | 92 | struct GNUNET_BANDWIDTH_Tracker *tracker; |
93 | 93 | ||
94 | tracker = GNUNET_CONTAINER_multihashmap_get (trackers, &peer->hashPubKey); | 94 | tracker = GNUNET_CONTAINER_multihashmap_get (trackers, &peer->hashPubKey); |
95 | GNUNET_break (NULL != tracker); | ||
96 | if (0 == ntohl (bandwidth_in.value__)) | 95 | if (0 == ntohl (bandwidth_in.value__)) |
97 | { | 96 | { |
97 | if (NULL == tracker) | ||
98 | return; | ||
98 | GNUNET_assert (GNUNET_YES == | 99 | GNUNET_assert (GNUNET_YES == |
99 | GNUNET_CONTAINER_multihashmap_remove (trackers, | 100 | GNUNET_CONTAINER_multihashmap_remove (trackers, |
100 | &peer->hashPubKey, | 101 | &peer->hashPubKey, |