From 2e024bd67fb584c40958e96b2b26cd9c2c5311b7 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 19 Jun 2016 22:23:23 +0000 Subject: avoid changing API for now --- src/core/core_api.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/core/core_api.c') 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, ret = th->get_message (th->get_message_cls, th->msize, &sm[1]); - GNUNET_assert (ret == th->msize); /* NOTE: API change! */ + sm->header.size = htons (ret); + th->msize = ret; + // GNUNET_assert (ret == th->msize); /* NOTE: API change! */ delay = GNUNET_TIME_absolute_get_duration (th->request_time); overdue = GNUNET_TIME_absolute_get_duration (th->deadline); if (overdue.rel_value_us > GNUNET_CONSTANTS_LATENCY_WARN.rel_value_us) -- cgit v1.2.3