aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/test_client.c')
-rw-r--r--src/util/test_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/test_client.c b/src/util/test_client.c
index 6dfb8349a..2b44c1690 100644
--- a/src/util/test_client.c
+++ b/src/util/test_client.c
@@ -73,7 +73,7 @@ echo_cb (void *cls, struct GNUNET_SERVER_Client *client,
73 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 73 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
74 "Receiving message from client, bouncing back\n"); 74 "Receiving message from client, bouncing back\n");
75 GNUNET_assert (sizeof (struct GNUNET_MessageHeader) == ntohs (message->size)); 75 GNUNET_assert (sizeof (struct GNUNET_MessageHeader) == ntohs (message->size));
76 cc = GNUNET_malloc (sizeof (struct CopyContext)); 76 cc = GNUNET_new (struct CopyContext);
77 cc->client = client; 77 cc->client = client;
78 cpy = GNUNET_malloc (ntohs (message->size)); 78 cpy = GNUNET_malloc (ntohs (message->size));
79 memcpy (cpy, message, ntohs (message->size)); 79 memcpy (cpy, message, ntohs (message->size));