aboutsummaryrefslogtreecommitdiff
path: root/src/core/gnunet-service-core.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-07-16 20:17:34 +0000
committerChristian Grothoff <christian@grothoff.org>2011-07-16 20:17:34 +0000
commit95f059ea4b268b48aed6182056a256228bd81dd2 (patch)
treefd27438c2f037831f905509c576bd32979dabb36 /src/core/gnunet-service-core.c
parente7b6929291bc646bd82602705b3690baf9251c77 (diff)
downloadgnunet-95f059ea4b268b48aed6182056a256228bd81dd2.tar.gz
gnunet-95f059ea4b268b48aed6182056a256228bd81dd2.zip
assert
Diffstat (limited to 'src/core/gnunet-service-core.c')
-rw-r--r--src/core/gnunet-service-core.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c
index 7a444847c..eebb39581 100644
--- a/src/core/gnunet-service-core.c
+++ b/src/core/gnunet-service-core.c
@@ -1721,9 +1721,10 @@ free_neighbour (struct Neighbour *n)
1721 GNUNET_CONTAINER_DLL_remove (n->active_client_request_head, 1721 GNUNET_CONTAINER_DLL_remove (n->active_client_request_head,
1722 n->active_client_request_tail, 1722 n->active_client_request_tail,
1723 car); 1723 car);
1724 GNUNET_CONTAINER_multihashmap_remove (car->client->requests, 1724 GNUNET_assert (GNUNET_YES ==
1725 &n->peer.hashPubKey, 1725 GNUNET_CONTAINER_multihashmap_remove (car->client->requests,
1726 car); 1726 &n->peer.hashPubKey,
1727 car));
1727 GNUNET_free (car); 1728 GNUNET_free (car);
1728 } 1729 }
1729 if (NULL != n->th) 1730 if (NULL != n->th)
@@ -1924,7 +1925,7 @@ consider_free_neighbour (struct Neighbour *n)
1924 return; 1925 return;
1925 } 1926 }
1926 /* actually free the neighbour... */ 1927 /* actually free the neighbour... */
1927 GNUNET_assert (GNUNET_OK == 1928 GNUNET_assert (GNUNET_YES ==
1928 GNUNET_CONTAINER_multihashmap_remove (neighbours, 1929 GNUNET_CONTAINER_multihashmap_remove (neighbours,
1929 &n->peer.hashPubKey, 1930 &n->peer.hashPubKey,
1930 n)); 1931 n));
@@ -4560,9 +4561,10 @@ handle_transport_notify_disconnect (void *cls,
4560 GNUNET_CONTAINER_DLL_remove (n->active_client_request_head, 4561 GNUNET_CONTAINER_DLL_remove (n->active_client_request_head,
4561 n->active_client_request_tail, 4562 n->active_client_request_tail,
4562 car); 4563 car);
4563 GNUNET_CONTAINER_multihashmap_remove (car->client->requests, 4564 GNUNET_assert (GNUNET_YES ==
4564 &n->peer.hashPubKey, 4565 GNUNET_CONTAINER_multihashmap_remove (car->client->requests,
4565 car); 4566 &n->peer.hashPubKey,
4567 car));
4566 GNUNET_free (car); 4568 GNUNET_free (car);
4567 } 4569 }
4568 4570