fix uninitialized mem
[oweals/gnunet.git] / src / ats / gnunet-service-ats_performance.c
index 8cb5e1acce5d0fccf88010e9a5ad65cbc5805a01..3249ed42ad4cc37e991813315d84127ff9064273 100644 (file)
@@ -178,6 +178,7 @@ GAS_performance_notify_client (struct PerformanceClient *pc,
   msg = (struct PeerInformationMessage *) buf;
   msg->header.size = htons (msize);
   msg->header.type = htons (GNUNET_MESSAGE_TYPE_ATS_PEER_INFORMATION);
+  msg->id = htonl (0);
   msg->ats_count = htonl (atsi_count);
   msg->peer = *peer;
   msg->address_length = htons (plugin_addr_len);
@@ -369,7 +370,7 @@ static void transmit_req_addr (struct AddressIteration *ai,
   if (NULL != plugin_name)
     strcpy (&addrp[plugin_addr_len], plugin_name);
   GNUNET_SERVER_notification_context_unicast (nc, ai->pc->client, &msg->header,
-                                              GNUNET_YES);
+                                              GNUNET_NO);
 }
 
 static void