diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-12-20 12:39:13 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-12-20 12:39:13 +0000 |
commit | 2f91118b949633f4b2ba1ea3dab9033dd9a8bf50 (patch) | |
tree | ba4a472a0882efafee661b943b0c973f54374602 | |
parent | e46adaefee76201e8dfc0adc9963be77077a5004 (diff) | |
download | gnunet-2f91118b949633f4b2ba1ea3dab9033dd9a8bf50.tar.gz gnunet-2f91118b949633f4b2ba1ea3dab9033dd9a8bf50.zip |
-check RV
-rw-r--r-- | src/ats/plugin_ats_mlp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ats/plugin_ats_mlp.c b/src/ats/plugin_ats_mlp.c index 2240ba680..d2f95242a 100644 --- a/src/ats/plugin_ats_mlp.c +++ b/src/ats/plugin_ats_mlp.c | |||
@@ -1075,6 +1075,7 @@ mlp_create_problem_add_address_information (void *cls, | |||
1075 | 1075 | ||
1076 | /* Get peer */ | 1076 | /* Get peer */ |
1077 | peer = GNUNET_CONTAINER_multipeermap_get (mlp->requested_peers, key); | 1077 | peer = GNUNET_CONTAINER_multipeermap_get (mlp->requested_peers, key); |
1078 | GNUNET_assert (NULL != peer); | ||
1078 | if (peer->processed == GNUNET_NO) | 1079 | if (peer->processed == GNUNET_NO) |
1079 | { | 1080 | { |
1080 | /* Add peer dependent constraints */ | 1081 | /* Add peer dependent constraints */ |
@@ -2440,7 +2441,8 @@ GAS_mlp_stop_get_preferred_address (void *solver, | |||
2440 | GNUNET_assert (NULL != peer); | 2441 | GNUNET_assert (NULL != peer); |
2441 | if (NULL != (p = GNUNET_CONTAINER_multipeermap_get (mlp->requested_peers, peer))) | 2442 | if (NULL != (p = GNUNET_CONTAINER_multipeermap_get (mlp->requested_peers, peer))) |
2442 | { | 2443 | { |
2443 | GNUNET_CONTAINER_multipeermap_remove (mlp->requested_peers, peer, p); | 2444 | GNUNET_assert (GNUNET_YES == |
2445 | GNUNET_CONTAINER_multipeermap_remove (mlp->requested_peers, peer, p)); | ||
2444 | GNUNET_free (p); | 2446 | GNUNET_free (p); |
2445 | 2447 | ||
2446 | mlp->stat_mlp_prob_changed = GNUNET_YES; | 2448 | mlp->stat_mlp_prob_changed = GNUNET_YES; |
@@ -2530,7 +2532,8 @@ mlp_free_peers (void *cls, | |||
2530 | struct GNUNET_CONTAINER_MultiPeerMap *map = cls; | 2532 | struct GNUNET_CONTAINER_MultiPeerMap *map = cls; |
2531 | struct ATS_Peer *p = value; | 2533 | struct ATS_Peer *p = value; |
2532 | 2534 | ||
2533 | GNUNET_CONTAINER_multipeermap_remove (map, key, value); | 2535 | GNUNET_assert (GNUNET_YES == |
2536 | GNUNET_CONTAINER_multipeermap_remove (map, key, value)); | ||
2534 | GNUNET_free (p); | 2537 | GNUNET_free (p); |
2535 | 2538 | ||
2536 | return GNUNET_OK; | 2539 | return GNUNET_OK; |