diff options
-rw-r--r-- | src/transport/test_transport_ats_multiple_peers.c | 8 |
1 files 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) | |||
567 | hdr.header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_ATS); | 567 | hdr.header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_ATS); |
568 | if (force_rebuild) | 568 | if (force_rebuild) |
569 | hdr.num = htonl (1); | 569 | hdr.num = htonl (1); |
570 | if (force_q_updates) | 570 | else if (force_q_updates) |
571 | hdr.num = htonl (2); | 571 | hdr.num = htonl (2); |
572 | memcpy (buf,&hdr, s); | 572 | else |
573 | hdr.num = htonl (0); | ||
574 | memcpy (buf, &hdr, s); | ||
573 | // GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Sent bytes: %i of %i\n", s, s); | 575 | // GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Sent bytes: %i of %i\n", s, s); |
574 | t = NULL; | 576 | t = NULL; |
575 | return s; | 577 | return s; |
576 | } | 578 | } |
577 | 579 | ||