diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-07-23 05:47:32 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-07-23 05:47:32 +0000 |
commit | 75948ef7deea69d6025ff4f7c33b59c144c77ad5 (patch) | |
tree | 221a6ad5ec3027e594dbbfbc5de03f856a834718 /src/cadet | |
parent | 39502a3e2999b700f0329f17ffb6fbd12e82bb25 (diff) | |
download | gnunet-75948ef7deea69d6025ff4f7c33b59c144c77ad5.tar.gz gnunet-75948ef7deea69d6025ff4f7c33b59c144c77ad5.zip |
- send ack AFTER removing message from queue, otherwise ack triggers an assert for sending and ACK of still-existing data
Diffstat (limited to 'src/cadet')
-rw-r--r-- | src/cadet/gnunet-service-cadet_channel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cadet/gnunet-service-cadet_channel.c b/src/cadet/gnunet-service-cadet_channel.c index 1c58ab9f4..677c859ea 100644 --- a/src/cadet/gnunet-service-cadet_channel.c +++ b/src/cadet/gnunet-service-cadet_channel.c | |||
@@ -632,10 +632,10 @@ send_client_buffered_data (struct CadetChannel *ch, | |||
632 | copy->mid, rel->mid_recv + 1); | 632 | copy->mid, rel->mid_recv + 1); |
633 | send_client_data (ch, msg, fwd); | 633 | send_client_data (ch, msg, fwd); |
634 | rel->n_recv--; | 634 | rel->n_recv--; |
635 | GCCH_send_data_ack (ch, fwd); | ||
636 | GNUNET_CONTAINER_DLL_remove (rel->head_recv, rel->tail_recv, copy); | 635 | GNUNET_CONTAINER_DLL_remove (rel->head_recv, rel->tail_recv, copy); |
637 | LOG (GNUNET_ERROR_TYPE_DEBUG, " COPYFREE RECV %p\n", copy); | 636 | LOG (GNUNET_ERROR_TYPE_DEBUG, " COPYFREE RECV %p\n", copy); |
638 | GNUNET_free (copy); | 637 | GNUNET_free (copy); |
638 | GCCH_send_data_ack (ch, fwd); | ||
639 | } | 639 | } |
640 | else | 640 | else |
641 | { | 641 | { |