aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet_connection.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2016-11-04 09:47:19 +0000
committerBart Polot <bart@net.in.tum.de>2016-11-04 09:47:19 +0000
commit435d615595069707ea77a5888486d5e863faba31 (patch)
tree3d6006fd293a9de45bbbd5948fa000307254f0a3 /src/cadet/gnunet-service-cadet_connection.c
parent4b982bd8f236ae5d6f229a7038bcbe3198a1408a (diff)
- simplify ack handling, die if trying to send conneciton-level ACK to clients
Diffstat (limited to 'src/cadet/gnunet-service-cadet_connection.c')
-rw-r--r--src/cadet/gnunet-service-cadet_connection.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c
index bdf208a1aa..6f186c82af 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;