-fix the fix
authorChristian Grothoff <christian@grothoff.org>
Sun, 19 Jun 2016 22:26:35 +0000 (22:26 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 19 Jun 2016 22:26:35 +0000 (22:26 +0000)
src/core/core_api.c

index 658ee9aaa4b571090ac49efca53b68600d3c2a97..b7fe812f882b34cc0826578024f1a73afd7d90a5 100644 (file)
@@ -696,7 +696,7 @@ handle_send_ready (void *cls,
   ret = th->get_message (th->get_message_cls,
                          th->msize,
                          &sm[1]);
-  sm->header.size = htons (ret);
+  sm->header.size = htons (ret + sizeof (struct SendMessage));
   th->msize = ret;
   // GNUNET_assert (ret == th->msize); /* NOTE: API change! */
   delay = GNUNET_TIME_absolute_get_duration (th->request_time);