aboutsummaryrefslogtreecommitdiff
path: root/src/core/core_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/core_api.c')
-rw-r--r--src/core/core_api.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/core_api.c b/src/core/core_api.c
index af78ab4f9..658ee9aaa 100644
--- a/src/core/core_api.c
+++ b/src/core/core_api.c
@@ -696,7 +696,9 @@ handle_send_ready (void *cls,
696 ret = th->get_message (th->get_message_cls, 696 ret = th->get_message (th->get_message_cls,
697 th->msize, 697 th->msize,
698 &sm[1]); 698 &sm[1]);
699 GNUNET_assert (ret == th->msize); /* NOTE: API change! */ 699 sm->header.size = htons (ret);
700 th->msize = ret;
701 // GNUNET_assert (ret == th->msize); /* NOTE: API change! */
700 delay = GNUNET_TIME_absolute_get_duration (th->request_time); 702 delay = GNUNET_TIME_absolute_get_duration (th->request_time);
701 overdue = GNUNET_TIME_absolute_get_duration (th->deadline); 703 overdue = GNUNET_TIME_absolute_get_duration (th->deadline);
702 if (overdue.rel_value_us > GNUNET_CONSTANTS_LATENCY_WARN.rel_value_us) 704 if (overdue.rel_value_us > GNUNET_CONSTANTS_LATENCY_WARN.rel_value_us)