gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r31632 - gnunet/src/gns


From: gnunet
Subject: [GNUnet-SVN] r31632 - gnunet/src/gns
Date: Fri, 20 Dec 2013 19:44:06 +0100

Author: harsha
Date: 2013-12-20 19:44:06 +0100 (Fri, 20 Dec 2013)
New Revision: 31632

Modified:
   gnunet/src/gns/gns_api.c
   gnunet/src/gns/test_gns_delegated_lookup.sh
   gnunet/src/gns/test_gns_dht_lookup.sh
Log:
- fix use after free cases


Modified: gnunet/src/gns/gns_api.c
===================================================================
--- gnunet/src/gns/gns_api.c    2013-12-20 18:20:01 UTC (rev 31631)
+++ gnunet/src/gns/gns_api.c    2013-12-20 18:44:06 UTC (rev 31632)
@@ -422,6 +422,9 @@
     force_reconnect (handle);
     return;
   }
+
+  GNUNET_CLIENT_receive (handle->client, &process_message, handle,
+                        GNUNET_TIME_UNIT_FOREVER_REL);
   switch (ntohs (msg->type))
   {
   case GNUNET_MESSAGE_TYPE_GNS_LOOKUP_RESULT:
@@ -447,8 +450,6 @@
     force_reconnect (handle);
     return;
   }
-  GNUNET_CLIENT_receive (handle->client, &process_message, handle,
-                        GNUNET_TIME_UNIT_FOREVER_REL);
 }
 
 

Modified: gnunet/src/gns/test_gns_delegated_lookup.sh
===================================================================
--- gnunet/src/gns/test_gns_delegated_lookup.sh 2013-12-20 18:20:01 UTC (rev 
31631)
+++ gnunet/src/gns/test_gns_delegated_lookup.sh 2013-12-20 18:44:06 UTC (rev 
31632)
@@ -7,7 +7,7 @@
 then
   LOCATION="gnunet-config"
 fi
-$LOCATION --version
+$LOCATION --version &> /dev/null
 if test $? != 0
 then
        echo "GNUnet command line tools cannot be found, check environmental 
variables PATH and GNUNET_PREFIX" 

Modified: gnunet/src/gns/test_gns_dht_lookup.sh
===================================================================
--- gnunet/src/gns/test_gns_dht_lookup.sh       2013-12-20 18:20:01 UTC (rev 
31631)
+++ gnunet/src/gns/test_gns_dht_lookup.sh       2013-12-20 18:44:06 UTC (rev 
31632)
@@ -7,7 +7,7 @@
 then
   LOCATION="gnunet-config"
 fi
-$LOCATION --version
+$LOCATION --version &> /dev/null
 if test $? != 0
 then
        echo "GNUnet command line tools cannot be found, check environmental 
variables PATH and GNUNET_PREFIX" 




reply via email to

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