[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r13679 - gnunet/src/core
From: |
gnunet |
Subject: |
[GNUnet-SVN] r13679 - gnunet/src/core |
Date: |
Sun, 14 Nov 2010 14:47:59 +0100 |
Author: grothoff
Date: 2010-11-14 14:47:59 +0100 (Sun, 14 Nov 2010)
New Revision: 13679
Modified:
gnunet/src/core/gnunet-service-core.c
Log:
fixing uninit fields
Modified: gnunet/src/core/gnunet-service-core.c
===================================================================
--- gnunet/src/core/gnunet-service-core.c 2010-11-14 13:37:09 UTC (rev
13678)
+++ gnunet/src/core/gnunet-service-core.c 2010-11-14 13:47:59 UTC (rev
13679)
@@ -987,6 +987,9 @@
#endif
psnm.header.size = htons (sizeof (struct PeerStatusNotifyMessage));
psnm.header.type = htons (GNUNET_MESSAGE_TYPE_CORE_NOTIFY_STATUS_CHANGE);
+ psnm.ats_count = htonl (0);
+ psnm.ats.type = htonl (0);
+ psnm.ats.value = htonl (0);
psnm.timeout = GNUNET_TIME_absolute_hton (GNUNET_TIME_absolute_add
(n->last_activity,
GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT));
psnm.bandwidth_in = n->bw_in;
@@ -1204,6 +1207,9 @@
/* notify new client about existing neighbours */
cnm.header.size = htons (sizeof (struct ConnectNotifyMessage));
cnm.header.type = htons (GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT);
+ cnm.ats_count = htonl (0);
+ cnm.ats.type = htonl (0);
+ cnm.ats.value = htonl (0);
n = neighbours;
while (n != NULL)
{
@@ -2088,6 +2094,9 @@
return 0;
}
ntm->header.type = htons (GNUNET_MESSAGE_TYPE_CORE_NOTIFY_OUTBOUND);
+ ntm->ats_count = htonl (0);
+ ntm->ats.type = htonl (0);
+ ntm->ats.value = htonl (0);
ntm->peer = n->peer;
pos = n->messages;
prev = NULL;
@@ -3518,6 +3527,9 @@
ntm = (struct NotifyTrafficMessage *) buf;
ntm->header.size = htons (msize + sizeof (struct NotifyTrafficMessage));
ntm->header.type = htons (GNUNET_MESSAGE_TYPE_CORE_NOTIFY_INBOUND);
+ ntm->ats_count = htonl (0);
+ ntm->ats.type = htonl (0);
+ ntm->ats.value = htonl (0);
ntm->peer = sender->peer;
memcpy (&ntm[1], m, msize);
send_to_client (client, &ntm->header, GNUNET_YES);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r13679 - gnunet/src/core,
gnunet <=