fix
authorChristian Grothoff <christian@grothoff.org>
Fri, 15 Jul 2011 12:09:52 +0000 (12:09 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 15 Jul 2011 12:09:52 +0000 (12:09 +0000)
src/transport/test_transport_ats_multiple_peers.c

index 36b9df70950b89ed4aa7feaf1a4089d56ba32797..d98fc12cf8afc42394fa2406d3a659cb420099a4 100644 (file)
@@ -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;
 }