diff options
author | Bart Polot <bart@net.in.tum.de> | 2016-11-04 09:47:19 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2016-11-04 09:47:19 +0000 |
commit | 435d615595069707ea77a5888486d5e863faba31 (patch) | |
tree | 3d6006fd293a9de45bbbd5948fa000307254f0a3 | |
parent | 4b982bd8f236ae5d6f229a7038bcbe3198a1408a (diff) | |
download | gnunet-435d615595069707ea77a5888486d5e863faba31.tar.gz gnunet-435d615595069707ea77a5888486d5e863faba31.zip |
- simplify ack handling, die if trying to send conneciton-level ACK to clients
-rw-r--r-- | src/cadet/gnunet-service-cadet_connection.c | 9 |
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 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) | |||
560 | uint32_t ack; | 560 | uint32_t ack; |
561 | int delta; | 561 | int delta; |
562 | 562 | ||
563 | /* If origin, there is no connection to send ACKs. Wrong function! */ | ||
564 | GCC_check_connections (); | 563 | GCC_check_connections (); |
565 | if (GCC_is_origin (c, fwd)) | 564 | GNUNET_assert (GNUNET_NO == GCC_is_origin (c, fwd)); |
566 | { | ||
567 | LOG (GNUNET_ERROR_TYPE_DEBUG, "connection %s is origin in %s\n", | ||
568 | GCC_2s (c), GC_f2s (fwd)); | ||
569 | GNUNET_break (0); | ||
570 | return; | ||
571 | } | ||
572 | 565 | ||
573 | next_fc = fwd ? &c->fwd_fc : &c->bck_fc; | 566 | next_fc = fwd ? &c->fwd_fc : &c->bck_fc; |
574 | prev_fc = fwd ? &c->bck_fc : &c->fwd_fc; | 567 | prev_fc = fwd ? &c->bck_fc : &c->fwd_fc; |