From: Christian Grothoff Date: Fri, 15 Jul 2011 12:09:52 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~17825 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cfa835b8d20715cea4343fd3e1bba93507c266ba;p=oweals%2Fgnunet.git fix --- 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; }