summaryrefslogtreecommitdiff
path: root/src/testbed/testbed_api_peers.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2012-07-09 11:35:19 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2012-07-09 11:35:19 +0000
commitfbb36b18c6d58e14a8fe1af922a72bb58fb6a4f7 (patch)
treeb34c54be926c1f46967d3ef8c45ec15f475ba088 /src/testbed/testbed_api_peers.c
parent0890551ed766641630b318db14f86a11802702bb (diff)
downloadgnunet-fbb36b18c6d58e14a8fe1af922a72bb58fb6a4f7.tar.gz
gnunet-fbb36b18c6d58e14a8fe1af922a72bb58fb6a4f7.zip
-peer create bug fixes and test case
Diffstat (limited to 'src/testbed/testbed_api_peers.c')
-rw-r--r--src/testbed/testbed_api_peers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testbed/testbed_api_peers.c b/src/testbed/testbed_api_peers.c
index 88c97ebf0..16dc57d23 100644
--- a/src/testbed/testbed_api_peers.c
+++ b/src/testbed/testbed_api_peers.c
@@ -97,7 +97,7 @@ GNUNET_TESTBED_peer_create_with_id_ (uint32_t unique_id,
97 GNUNET_free (config); 97 GNUNET_free (config);
98 msize = xc_size + sizeof (struct GNUNET_TESTBED_PeerCreateMessage); 98 msize = xc_size + sizeof (struct GNUNET_TESTBED_PeerCreateMessage);
99 msg = GNUNET_realloc (xconfig, msize); 99 msg = GNUNET_realloc (xconfig, msize);
100 memmove (&msg[1], msg, sizeof (struct GNUNET_TESTBED_PeerCreateMessage)); 100 memmove (&msg[1], msg, xc_size); /* Move the compressed config */
101 msg->header.size = htons (msize); 101 msg->header.size = htons (msize);
102 msg->header.type = htons (GNUNET_MESSAGE_TYPE_TESTBED_CREATEPEER); 102 msg->header.type = htons (GNUNET_MESSAGE_TYPE_TESTBED_CREATEPEER);
103 msg->host_id = htonl (GNUNET_TESTBED_host_get_id_ (peer->host)); 103 msg->host_id = htonl (GNUNET_TESTBED_host_get_id_ (peer->host));