[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r7800 - GNUnet/src/applications/topology_default
From: |
gnunet |
Subject: |
[GNUnet-SVN] r7800 - GNUnet/src/applications/topology_default |
Date: |
Sun, 19 Oct 2008 13:05:19 -0600 (MDT) |
Author: grothoff
Date: 2008-10-19 13:05:19 -0600 (Sun, 19 Oct 2008)
New Revision: 7800
Modified:
GNUnet/src/applications/topology_default/topology.c
Log:
leak by nate
Modified: GNUnet/src/applications/topology_default/topology.c
===================================================================
--- GNUnet/src/applications/topology_default/topology.c 2008-10-19 05:10:13 UTC
(rev 7799)
+++ GNUnet/src/applications/topology_default/topology.c 2008-10-19 19:05:19 UTC
(rev 7800)
@@ -543,13 +543,16 @@
is_friend (const GNUNET_PeerIdentity * peer)
{
unsigned int i;
- char *section;
- int temp_size = snprintf(NULL,0,"F2f") + 1;
- section = malloc(temp_size);
- snprintf(section,temp_size,"F2f");
- rereadConfiguration(NULL,coreAPI->cfg,coreAPI->ectx,section,NULL);
+
+ rereadConfiguration(NULL,
+ coreAPI->cfg,
+ coreAPI->ectx,
+ "F2F",
+ NULL);
for (i = 0; i < friendCount; i++)
- if (0 == memcmp (&friends[i], peer, sizeof (GNUNET_PeerIdentity)))
+ if (0 == memcmp (&friends[i],
+ peer,
+ sizeof (GNUNET_PeerIdentity)))
return 1;
return 0;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r7800 - GNUnet/src/applications/topology_default,
gnunet <=