diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-07-16 20:32:11 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-07-16 20:32:11 +0000 |
commit | d887fa878e119bba68bddcee94f8318da6fe2b17 (patch) | |
tree | 82582efa0c707fe2c0214c8f9f93ba2d05b4dd3b /src/fs | |
parent | 2842f7220750bfd3af2d67478cef6e5b072d5b12 (diff) | |
download | gnunet-d887fa878e119bba68bddcee94f8318da6fe2b17.tar.gz gnunet-d887fa878e119bba68bddcee94f8318da6fe2b17.zip |
assert
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/gnunet-service-fs_cp.c | 11 |
1 files 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, | |||
807 | -1, | 807 | -1, |
808 | GNUNET_NO); | 808 | GNUNET_NO); |
809 | prd = GSF_pending_request_get_data_ (pr); | 809 | prd = GSF_pending_request_get_data_ (pr); |
810 | GNUNET_break (GNUNET_OK == | 810 | GNUNET_break (GNUNET_YES == |
811 | GNUNET_CONTAINER_multihashmap_remove (cp->request_map, | 811 | GNUNET_CONTAINER_multihashmap_remove (cp->request_map, |
812 | &prd->query, | 812 | &prd->query, |
813 | peerreq)); | 813 | peerreq)); |
@@ -936,7 +936,7 @@ handle_p2p_reply (void *cls, | |||
936 | gettext_noop ("# P2P searches active"), | 936 | gettext_noop ("# P2P searches active"), |
937 | -1, | 937 | -1, |
938 | GNUNET_NO); | 938 | GNUNET_NO); |
939 | GNUNET_break (GNUNET_OK == | 939 | GNUNET_break (GNUNET_YES == |
940 | GNUNET_CONTAINER_multihashmap_remove (cp->request_map, | 940 | GNUNET_CONTAINER_multihashmap_remove (cp->request_map, |
941 | &prd->query, | 941 | &prd->query, |
942 | peerreq)); | 942 | peerreq)); |
@@ -1658,9 +1658,10 @@ GSF_peer_disconnect_handler_ (void *cls, | |||
1658 | if (NULL == cp) | 1658 | if (NULL == cp) |
1659 | return; /* must have been disconnect from core with | 1659 | return; /* must have been disconnect from core with |
1660 | 'peer' == my_id, ignore */ | 1660 | 'peer' == my_id, ignore */ |
1661 | GNUNET_CONTAINER_multihashmap_remove (cp_map, | 1661 | GNUNET_assert (GNUNET_YES == |
1662 | &peer->hashPubKey, | 1662 | GNUNET_CONTAINER_multihashmap_remove (cp_map, |
1663 | cp); | 1663 | &peer->hashPubKey, |
1664 | cp)); | ||
1664 | if (NULL != cp->migration_pth) | 1665 | if (NULL != cp->migration_pth) |
1665 | { | 1666 | { |
1666 | GSF_peer_transmit_cancel_ (cp->migration_pth); | 1667 | GSF_peer_transmit_cancel_ (cp->migration_pth); |