gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r25413 - gnunet/src/ats


From: gnunet
Subject: [GNUnet-SVN] r25413 - gnunet/src/ats
Date: Wed, 12 Dec 2012 10:54:26 +0100

Author: wachs
Date: 2012-12-12 10:54:26 +0100 (Wed, 12 Dec 2012)
New Revision: 25413

Modified:
   gnunet/src/ats/gnunet-service-ats_addresses_simplistic.c
Log:
fix coverity 10390

Modified: gnunet/src/ats/gnunet-service-ats_addresses_simplistic.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_addresses_simplistic.c    2012-12-12 
09:54:00 UTC (rev 25412)
+++ gnunet/src/ats/gnunet-service-ats_addresses_simplistic.c    2012-12-12 
09:54:26 UTC (rev 25413)
@@ -385,7 +385,6 @@
 
   net = (struct Network *) address->solver_information;
 
-
   if (GNUNET_NO == session_only)
   {
     LOG (GNUNET_ERROR_TYPE_DEBUG, "Deleting %s address %p for peer `%s' from 
network `%s' (total: %u/ active: %u)\n",
@@ -408,6 +407,11 @@
         if (aw->addr == address)
           break;
     }
+    if (NULL == aw )
+    {
+        GNUNET_break (0);
+        return;
+    }
     GNUNET_CONTAINER_DLL_remove (net->head, net->tail, aw);
     GNUNET_free (aw);
   }




reply via email to

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