-fix format warning
[oweals/gnunet.git] / src / core / core_api.c
index af78ab4f9983cbc6fd313744685a47e4718b6274..b7fe812f882b34cc0826578024f1a73afd7d90a5 100644 (file)
@@ -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 + sizeof (struct SendMessage));
+  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)