From d887fa878e119bba68bddcee94f8318da6fe2b17 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 16 Jul 2011 20:32:11 +0000 Subject: [PATCH] assert --- src/fs/gnunet-service-fs_cp.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/fs/gnunet-service-fs_cp.c b/src/fs/gnunet-service-fs_cp.c index 56b85fe1d..c8504045a 100644 --- a/src/fs/gnunet-service-fs_cp.c +++ b/src/fs/gnunet-service-fs_cp.c @@ -807,7 +807,7 @@ cancel_pending_request (void *cls, -1, GNUNET_NO); prd = GSF_pending_request_get_data_ (pr); - GNUNET_break (GNUNET_OK == + GNUNET_break (GNUNET_YES == GNUNET_CONTAINER_multihashmap_remove (cp->request_map, &prd->query, peerreq)); @@ -936,7 +936,7 @@ handle_p2p_reply (void *cls, gettext_noop ("# P2P searches active"), -1, GNUNET_NO); - GNUNET_break (GNUNET_OK == + GNUNET_break (GNUNET_YES == GNUNET_CONTAINER_multihashmap_remove (cp->request_map, &prd->query, peerreq)); @@ -1658,9 +1658,10 @@ GSF_peer_disconnect_handler_ (void *cls, if (NULL == cp) return; /* must have been disconnect from core with 'peer' == my_id, ignore */ - GNUNET_CONTAINER_multihashmap_remove (cp_map, - &peer->hashPubKey, - cp); + GNUNET_assert (GNUNET_YES == + GNUNET_CONTAINER_multihashmap_remove (cp_map, + &peer->hashPubKey, + cp)); if (NULL != cp->migration_pth) { GSF_peer_transmit_cancel_ (cp->migration_pth); -- 2.25.1