aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-tng.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/gnunet-service-tng.c')
-rw-r--r--src/transport/gnunet-service-tng.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/transport/gnunet-service-tng.c b/src/transport/gnunet-service-tng.c
index 5976bd5b1..512b77a9d 100644
--- a/src/transport/gnunet-service-tng.c
+++ b/src/transport/gnunet-service-tng.c
@@ -4489,8 +4489,13 @@ queue_send_msg (struct Queue *queue,
4489 GNUNET_assert (CT_COMMUNICATOR == queue->tc->type); 4489 GNUNET_assert (CT_COMMUNICATOR == queue->tc->type);
4490 queue->queue_length++; 4490 queue->queue_length++;
4491 queue->tc->details.communicator.total_queue_length++; 4491 queue->tc->details.communicator.total_queue_length++;
4492 //FIXME Probably this if statement here is completely wrong in this method,
4493 // and only fixed a symptom, but not an actual bug.
4492 if (0 == queue->q_capacity) 4494 if (0 == queue->q_capacity)
4495 {
4496 GNUNET_free (env);
4493 return; 4497 return;
4498 }
4494 if (GNUNET_NO == queue->unlimited_length) 4499 if (GNUNET_NO == queue->unlimited_length)
4495 queue->q_capacity--; 4500 queue->q_capacity--;
4496 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 4501 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,