From: Christian Grothoff Date: Tue, 4 Oct 2011 13:55:12 +0000 (+0000) Subject: adding assertions to help with 1815 X-Git-Tag: initial-import-from-subversion-38251~16817 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5bf323a7a3f2e40a7294b72762960d7445c55fbb;p=oweals%2Fgnunet.git adding assertions to help with 1815 --- diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c index 4a9790b08..76cb486bb 100644 --- a/src/core/gnunet-service-core.c +++ b/src/core/gnunet-service-core.c @@ -3838,6 +3838,7 @@ send_p2p_message_to_client (struct Neighbour *sender, struct Client *client, struct GNUNET_TRANSPORT_ATS_Information *ats; GNUNET_assert (GNUNET_YES == sender->is_connected); + GNUNET_break (sender->status == PEER_STATE_KEY_CONFIRMED); if (size >= GNUNET_SERVER_MAX_MESSAGE_SIZE) { GNUNET_break (0); @@ -3888,6 +3889,7 @@ deliver_message (void *cls, void *client, const struct GNUNET_MessageHeader *m) int deliver_full; int dropped; + GNUNET_break (sender->status == PEER_STATE_KEY_CONFIRMED); type = ntohs (m->type); #if DEBUG_CORE > 1 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,