gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r10226 - GNUnet/src/applications/dv_dht/module


From: gnunet
Subject: [GNUnet-SVN] r10226 - GNUnet/src/applications/dv_dht/module
Date: Fri, 5 Feb 2010 16:10:57 +0100

Author: nevans
Date: 2010-02-05 16:10:57 +0100 (Fri, 05 Feb 2010)
New Revision: 10226

Modified:
   GNUnet/src/applications/dv_dht/module/routing.c
Log:
missing lock, should fix valgrind log issue from mantis bug 1539

Modified: GNUnet/src/applications/dv_dht/module/routing.c
===================================================================
--- GNUnet/src/applications/dv_dht/module/routing.c     2010-02-05 13:14:21 UTC 
(rev 10225)
+++ GNUnet/src/applications/dv_dht/module/routing.c     2010-02-05 15:10:57 UTC 
(rev 10226)
@@ -1392,7 +1392,9 @@
   put->type = htonl (type);
   put->hop_count = htonl (0);
   memset (&put->bloomfilter, 0, DV_DHT_BLOOM_SIZE);
+  GNUNET_mutex_lock(lock);
   put->network_size = htonl (GNUNET_DV_DHT_estimate_network_diameter ());
+  GNUNET_mutex_unlock(lock);
 #if DEBUG_ROUTING
   queryuid = 0;
   GNUNET_GE_LOG (coreAPI->ectx,





reply via email to

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