diff options
author | Bart Polot <bart@net.in.tum.de> | 2015-06-10 12:08:14 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2015-06-10 12:08:14 +0000 |
commit | 8506fc6161c3bddee755a3c7d15d85b74ca3efc7 (patch) | |
tree | 81d121044c2095bc7f40182b12197b24f3bb662c /src | |
parent | e73475e7931e307ab7110d546a5975e8eee03b21 (diff) | |
download | gnunet-8506fc6161c3bddee755a3c7d15d85b74ca3efc7.tar.gz gnunet-8506fc6161c3bddee755a3c7d15d85b74ca3efc7.zip |
Fixed channel recv buffer space accounting error when receiving a duplicate message
Diffstat (limited to 'src')
-rw-r--r-- | src/cadet/gnunet-service-cadet_channel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cadet/gnunet-service-cadet_channel.c b/src/cadet/gnunet-service-cadet_channel.c index 94784da40..93d228edf 100644 --- a/src/cadet/gnunet-service-cadet_channel.c +++ b/src/cadet/gnunet-service-cadet_channel.c | |||
@@ -414,6 +414,7 @@ add_buffered_data (const struct GNUNET_CADET_Data *msg, | |||
414 | if (prev->mid == mid) | 414 | if (prev->mid == mid) |
415 | { | 415 | { |
416 | LOG (GNUNET_ERROR_TYPE_DEBUG, " already there!\n"); | 416 | LOG (GNUNET_ERROR_TYPE_DEBUG, " already there!\n"); |
417 | rel->n_recv--; | ||
417 | return; | 418 | return; |
418 | } | 419 | } |
419 | else if (GC_is_pid_bigger (prev->mid, mid)) | 420 | else if (GC_is_pid_bigger (prev->mid, mid)) |
@@ -807,7 +808,7 @@ ch_message_sent (void *cls, | |||
807 | struct CadetReliableMessage *copy = chq->copy; | 808 | struct CadetReliableMessage *copy = chq->copy; |
808 | struct CadetChannelReliability *rel; | 809 | struct CadetChannelReliability *rel; |
809 | 810 | ||
810 | LOG (GNUNET_ERROR_TYPE_DEBUG, "channel message sent callback %s\n", | 811 | LOG (GNUNET_ERROR_TYPE_DEBUG, "channel_message_sent callback %s\n", |
811 | GC_m2s (chq->type)); | 812 | GC_m2s (chq->type)); |
812 | 813 | ||
813 | switch (chq->type) | 814 | switch (chq->type) |