Browse Source

Fix stupid C mistake. Glad I caught that one fast.

svn:r8448
Nick Mathewson 18 years ago
parent
commit
63395c747c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/dns.c

+ 1 - 1
src/or/dns.c

@@ -518,7 +518,7 @@ dns_resolve(edge_connection_t *exitconn)
 
   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. */