fix uninitialized mem
authorMatthias Wachs <wachs@net.in.tum.de>
Thu, 22 Nov 2012 15:29:52 +0000 (15:29 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Thu, 22 Nov 2012 15:29:52 +0000 (15:29 +0000)
src/ats/gnunet-service-ats_performance.c

index 8bc0776642e5c2fe6f625637ea6f395a2294e548..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);