-fix time assertion introduce in last patch
[oweals/gnunet.git] / src / util / test_client.c
index 6dfb8349aa345cc877c561e5f9465823cc293ebb..2b44c1690791f03e714637ab8d6ecaa811060e11 100644 (file)
@@ -73,7 +73,7 @@ echo_cb (void *cls, struct GNUNET_SERVER_Client *client,
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Receiving message from client, bouncing back\n");
   GNUNET_assert (sizeof (struct GNUNET_MessageHeader) == ntohs (message->size));
-  cc = GNUNET_malloc (sizeof (struct CopyContext));
+  cc = GNUNET_new (struct CopyContext);
   cc->client = client;
   cpy = GNUNET_malloc (ntohs (message->size));
   memcpy (cpy, message, ntohs (message->size));