gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r12561 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r12561 - gnunet/src/util
Date: Sun, 15 Aug 2010 16:14:48 +0200

Author: grothoff
Date: 2010-08-15 16:14:47 +0200 (Sun, 15 Aug 2010)
New Revision: 12561

Modified:
   gnunet/src/util/connection.c
Log:
assert earlier

Modified: gnunet/src/util/connection.c
===================================================================
--- gnunet/src/util/connection.c        2010-08-15 14:05:47 UTC (rev 12560)
+++ gnunet/src/util/connection.c        2010-08-15 14:14:47 UTC (rev 12561)
@@ -721,6 +721,7 @@
   int error;
   unsigned int len;
 
+  GNUNET_assert (ap->sock != NULL);
   GNUNET_CONTAINER_DLL_remove (h->ap_head, h->ap_tail, ap);
   len = sizeof (error);
   errno = 0;
@@ -738,7 +739,6 @@
       return;
     }
   GNUNET_assert (h->sock == NULL);
-  GNUNET_assert (ap->sock != NULL);
   h->sock = ap->sock;
   GNUNET_assert (h->addr == NULL);
   h->addr = GNUNET_malloc (ap->addrlen);




reply via email to

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