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

[or-cvs] r8448: Fix stupid C mistake. Glad I caught that one fast. (tor/trunk/src/or)



Author: nickm
Date: 2006-09-21 18:57:07 -0400 (Thu, 21 Sep 2006)
New Revision: 8448

Modified:
   tor/trunk/src/or/dns.c
Log:
Fix stupid C mistake.  Glad I caught that one fast.

Modified: tor/trunk/src/or/dns.c
===================================================================
--- tor/trunk/src/or/dns.c	2006-09-21 22:24:45 UTC (rev 8447)
+++ tor/trunk/src/or/dns.c	2006-09-21 22:57:07 UTC (rev 8448)
@@ -518,7 +518,7 @@
 
   assert_cache_ok();
 
-  is_resolve = exitconn->_base.purpose = EXIT_PURPOSE_RESOLVE;
+  is_resolve = exitconn->_base.purpose == EXIT_PURPOSE_RESOLVE;
 
   /* first check if exitconn->_base.address is an IP. If so, we already
    * know the answer. */