diff options
Diffstat (limited to 'src/cadet/gnunet-service-cadet_channel.c')
-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 22349aa80..6f32bdc81 100644 --- a/src/cadet/gnunet-service-cadet_channel.c +++ b/src/cadet/gnunet-service-cadet_channel.c | |||
@@ -2495,17 +2495,18 @@ GCCH_send_prebuilt_message (const struct GNUNET_MessageHeader *message, | |||
2495 | } | 2495 | } |
2496 | } | 2496 | } |
2497 | 2497 | ||
2498 | chq->rel->uniq = chq; | ||
2498 | chq->tq = GCT_send_prebuilt_message (message, ch->t, NULL, GNUNET_YES, | 2499 | chq->tq = GCT_send_prebuilt_message (message, ch->t, NULL, GNUNET_YES, |
2499 | &ch_message_sent, chq); | 2500 | &ch_message_sent, chq); |
2500 | if (NULL == chq->tq) | 2501 | if (NULL == chq->tq) |
2501 | { | 2502 | { |
2502 | GNUNET_break (0); | 2503 | GNUNET_break (0); |
2504 | chq->rel->uniq = NULL; | ||
2503 | GCT_debug (ch->t, GNUNET_ERROR_TYPE_ERROR); | 2505 | GCT_debug (ch->t, GNUNET_ERROR_TYPE_ERROR); |
2504 | GNUNET_free (chq); | 2506 | GNUNET_free (chq); |
2505 | chq = NULL; | 2507 | chq = NULL; |
2506 | return; | 2508 | return; |
2507 | } | 2509 | } |
2508 | chq->rel->uniq = chq; | ||
2509 | break; | 2510 | break; |
2510 | 2511 | ||
2511 | 2512 | ||