From: Matthias Wachs Date: Tue, 11 Dec 2012 13:56:18 +0000 (+0000) Subject: changes X-Git-Tag: initial-import-from-subversion-38251~10493 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f864eacc663ac0500f9b21b39c4d800c5fce891b;p=oweals%2Fgnunet.git changes --- diff --git a/src/ats/gnunet-service-ats_addresses_simplistic.c b/src/ats/gnunet-service-ats_addresses_simplistic.c index fd33fd7e6..cd35008ab 100644 --- a/src/ats/gnunet-service-ats_addresses_simplistic.c +++ b/src/ats/gnunet-service-ats_addresses_simplistic.c @@ -352,6 +352,13 @@ GAS_simplistic_address_delete (void *solver, struct GNUNET_CONTAINER_MultiHashMa GNUNET_break (0 < net->total_addresses); net->total_addresses --; + for (aw = net->head; NULL != aw; aw = aw->next) + { + if (aw->addr == address) + break; + } + GNUNET_CONTAINER_DLL_remove (net->head, net->tail, aw); + GNUNET_free (aw); if (GNUNET_YES == address->active) { @@ -363,13 +370,6 @@ GAS_simplistic_address_delete (void *solver, struct GNUNET_CONTAINER_MultiHashMa update_quota_per_network (s, net, NULL); } - for (aw = net->head; NULL != aw; aw = aw->next) - { - if (aw->addr == address) - break; - } - GNUNET_CONTAINER_DLL_remove (net->head, net->tail, aw); - GNUNET_free (aw); }