[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r6937: a bit more debugging for phobos (tor/trunk/src/or)



Author: arma
Date: 2006-07-29 23:34:44 -0400 (Sat, 29 Jul 2006)
New Revision: 6937

Modified:
   tor/trunk/src/or/dns.c
Log:
a bit more debugging for phobos


Modified: tor/trunk/src/or/dns.c
===================================================================
--- tor/trunk/src/or/dns.c	2006-07-30 03:32:54 UTC (rev 6936)
+++ tor/trunk/src/or/dns.c	2006-07-30 03:34:44 UTC (rev 6937)
@@ -266,7 +266,10 @@
       newest_cached_resolve = NULL; /* then make sure the list's tail knows
                                      * that too */
     removed = HT_REMOVE(cache_map, &cache_root, resolve);
-    tor_assert(removed == resolve);
+    if (removed != resolve) {
+      log_notice(LD_EXIT, "Removed is %p, resolve is %p.", removed, resolve);
+      tor_assert(removed == resolve);
+    }
     resolve->magic = 0xF0BBF0BB;
     tor_free(resolve);
   }