[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r8135 - GNUnet/src/applications/dv/module
From: |
gnunet |
Subject: |
[GNUnet-SVN] r8135 - GNUnet/src/applications/dv/module |
Date: |
Tue, 20 Jan 2009 13:42:12 -0700 (MST) |
Author: nevans
Date: 2009-01-20 13:42:12 -0700 (Tue, 20 Jan 2009)
New Revision: 8135
Modified:
GNUnet/src/applications/dv/module/dv.c
Log:
Modified: GNUnet/src/applications/dv/module/dv.c
===================================================================
--- GNUnet/src/applications/dv/module/dv.c 2009-01-20 20:29:57 UTC (rev
8134)
+++ GNUnet/src/applications/dv/module/dv.c 2009-01-20 20:42:12 UTC (rev
8135)
@@ -205,14 +205,16 @@
neighbor = GNUNET_malloc (sizeof (struct GNUNET_dv_neighbor));
neighbor->cost = cost;
- neighbor->neighbor =
- GNUNET_malloc (sizeof (GNUNET_PeerIdentity));
+ neighbor->neighbor = GNUNET_malloc (sizeof
(GNUNET_PeerIdentity));
memcpy (neighbor->neighbor, peer, sizeof (GNUNET_PeerIdentity));
if (referrer == NULL)
neighbor->referrer = NULL;
else
+ {
+ neighbor->referrer = GNUNET_malloc (sizeof
(GNUNET_PeerIdentity));
memcpy (neighbor->referrer, referrer,
sizeof (GNUNET_PeerIdentity));
+ }
GNUNET_multi_hash_map_put (ctx->extended_neighbors,
&peer->hashPubKey, neighbor,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r8135 - GNUnet/src/applications/dv/module,
gnunet <=