From 435d615595069707ea77a5888486d5e863faba31 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Fri, 4 Nov 2016 09:47:19 +0000 Subject: [PATCH] - simplify ack handling, die if trying to send conneciton-level ACK to clients --- src/cadet/gnunet-service-cadet_connection.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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; -- 2.25.1