gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r8136 - GNUnet/src/applications/dv/module


From: gnunet
Subject: [GNUnet-SVN] r8136 - GNUnet/src/applications/dv/module
Date: Tue, 20 Jan 2009 14:04:20 -0700 (MST)

Author: nevans
Date: 2009-01-20 14:04:20 -0700 (Tue, 20 Jan 2009)
New Revision: 8136

Modified:
   GNUnet/src/applications/dv/module/dv.c
Log:
fixing segfaults is fun

Modified: GNUnet/src/applications/dv/module/dv.c
===================================================================
--- GNUnet/src/applications/dv/module/dv.c      2009-01-20 20:42:12 UTC (rev 
8135)
+++ GNUnet/src/applications/dv/module/dv.c      2009-01-20 21:04:20 UTC (rev 
8136)
@@ -170,7 +170,10 @@
       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, GNUNET_MultiHashMapOption_REPLACE);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]