From: Bart Polot Date: Fri, 4 Nov 2016 09:47:19 +0000 (+0000) Subject: - simplify ack handling, die if trying to send conneciton-level ACK to clients X-Git-Tag: initial-import-from-subversion-38251~10 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=435d615595069707ea77a5888486d5e863faba31;p=oweals%2Fgnunet.git - simplify ack handling, die if trying to send conneciton-level ACK to clients --- diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c index bdf208a1a..6f186c82a 100644 --- a/src/cadet/gnunet-service-cadet_connection.c +++ b/src/cadet/gnunet-service-cadet_connection.c @@ -560,15 +560,8 @@ send_ack (struct CadetConnection *c, unsigned int buffer, int fwd, int force) uint32_t ack; int delta; - /* If origin, there is no connection to send ACKs. Wrong function! */ GCC_check_connections (); - if (GCC_is_origin (c, fwd)) - { - LOG (GNUNET_ERROR_TYPE_DEBUG, "connection %s is origin in %s\n", - GCC_2s (c), GC_f2s (fwd)); - GNUNET_break (0); - return; - } + GNUNET_assert (GNUNET_NO == GCC_is_origin (c, fwd)); next_fc = fwd ? &c->fwd_fc : &c->bck_fc; prev_fc = fwd ? &c->bck_fc : &c->fwd_fc;