aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet_connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cadet/gnunet-service-cadet_connection.c')
-rw-r--r--src/cadet/gnunet-service-cadet_connection.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c
index 9dfecf043..babb00d66 100644
--- a/src/cadet/gnunet-service-cadet_connection.c
+++ b/src/cadet/gnunet-service-cadet_connection.c
@@ -3482,6 +3482,13 @@ GCC_send_prebuilt_message (const struct GNUNET_MessageHeader *message,
3482 int droppable; 3482 int droppable;
3483 3483
3484 GCC_check_connections (); 3484 GCC_check_connections ();
3485 fc = fwd ? &c->fwd_fc : &c->bck_fc;
3486 if (0 == fc->queue_max)
3487 {
3488 GNUNET_break (0);
3489 return NULL;
3490 }
3491
3485 size = ntohs (message->size); 3492 size = ntohs (message->size);
3486 data = GNUNET_malloc (size); 3493 data = GNUNET_malloc (size);
3487 GNUNET_memcpy (data, message, size); 3494 GNUNET_memcpy (data, message, size);
@@ -3490,13 +3497,6 @@ GCC_send_prebuilt_message (const struct GNUNET_MessageHeader *message,
3490 "--> %s (%s %4u) on conn %s (%p) %s [%5u]\n", 3497 "--> %s (%s %4u) on conn %s (%p) %s [%5u]\n",
3491 GC_m2s (type), GC_m2s (payload_type), payload_id, GCC_2s (c), c, 3498 GC_m2s (type), GC_m2s (payload_type), payload_id, GCC_2s (c), c,
3492 GC_f2s(fwd), size); 3499 GC_f2s(fwd), size);
3493
3494 fc = fwd ? &c->fwd_fc : &c->bck_fc;
3495 if (0 == fc->queue_max)
3496 {
3497 GNUNET_break (0);
3498 return NULL;
3499 }
3500 droppable = GNUNET_NO == force; 3500 droppable = GNUNET_NO == force;
3501 switch (type) 3501 switch (type)
3502 { 3502 {