diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-11-25 12:31:00 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-11-25 12:31:00 +0000 |
commit | aa3fe66f2aab8098491304d7083426c579c2cd4d (patch) | |
tree | f56d64dcfde8ad7bf0a3bbc7212c20b3e761d0c6 /src/stream | |
parent | b38f372fc6fd535f591dce4068d42a4191f62cde (diff) | |
download | gnunet-aa3fe66f2aab8098491304d7083426c579c2cd4d.tar.gz gnunet-aa3fe66f2aab8098491304d7083426c579c2cd4d.zip |
-fix double-sending in stream if finish_cb behaves in a certain way
Diffstat (limited to 'src/stream')
-rw-r--r-- | src/stream/stream_api.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stream/stream_api.c b/src/stream/stream_api.c index 5f0fbaa77..66c24dc86 100644 --- a/src/stream/stream_api.c +++ b/src/stream/stream_api.c | |||
@@ -626,6 +626,8 @@ send_message_notify (void *cls, size_t size, void *buf) | |||
626 | head); | 626 | head); |
627 | GNUNET_free (head->message); | 627 | GNUNET_free (head->message); |
628 | GNUNET_free (head); | 628 | GNUNET_free (head); |
629 | if (NULL != socket->transmit_handle) | ||
630 | return ret; /* 'finish_cb' might have triggered message already! */ | ||
629 | head = socket->queue_head; | 631 | head = socket->queue_head; |
630 | if (NULL != head) /* more pending messages to send */ | 632 | if (NULL != head) /* more pending messages to send */ |
631 | { | 633 | { |