[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r9511 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r9511 - gnunet/src/util |
Date: |
Sun, 15 Nov 2009 06:27:52 -0700 |
Author: grothoff
Date: 2009-11-15 06:27:52 -0700 (Sun, 15 Nov 2009)
New Revision: 9511
Modified:
gnunet/src/util/connection.c
Log:
adding a few more asserts to help debug
Modified: gnunet/src/util/connection.c
===================================================================
--- gnunet/src/util/connection.c 2009-11-15 11:46:33 UTC (rev 9510)
+++ gnunet/src/util/connection.c 2009-11-15 13:27:52 UTC (rev 9511)
@@ -678,6 +678,8 @@
connect_fail_continuation (h);
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);
@@ -721,6 +723,7 @@
}
if (h->sock != NULL)
return; /* already connected */
+ GNUNET_assert (h->addr == NULL);
/* try to connect */
#if DEBUG_CONNECTION
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r9511 - gnunet/src/util,
gnunet <=