From cfa835b8d20715cea4343fd3e1bba93507c266ba Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 15 Jul 2011 12:09:52 +0000 Subject: [PATCH] fix --- src/transport/test_transport_ats_multiple_peers.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/transport/test_transport_ats_multiple_peers.c b/src/transport/test_transport_ats_multiple_peers.c index 36b9df709..d98fc12cf 100644 --- a/src/transport/test_transport_ats_multiple_peers.c +++ b/src/transport/test_transport_ats_multiple_peers.c @@ -567,11 +567,13 @@ send_dummy_data_task (void *cls, size_t size, void *buf) hdr.header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_ATS); if (force_rebuild) hdr.num = htonl (1); - if (force_q_updates) + else if (force_q_updates) hdr.num = htonl (2); - memcpy (buf,&hdr, s); + else + hdr.num = htonl (0); + memcpy (buf, &hdr, s); // GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Sent bytes: %i of %i\n", s, s); - t = NULL; + t = NULL; return s; } -- 2.25.1