diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-05-06 10:18:34 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-05-06 10:18:34 -0400 |
commit | 78301d99fe0a9464992baea22be3c6fd42b7dcad (patch) | |
tree | 4c1321f785be3c4e6cdd68ba6175dc8b760c2e3c | |
parent | 388478561dd4457afedf530591f02cb05864b187 (diff) | |
download | tor-78301d99fe0a9464992baea22be3c6fd42b7dcad.tar.gz tor-78301d99fe0a9464992baea22be3c6fd42b7dcad.zip |
Fix compilation with DEBUG_DNS_CACHE
Reported by cypherpunks.
Fix for #11761; bugfix on 0.2.3.13-alpha where we made ht.h stop using
_identifiers.
-rw-r--r-- | changes/bug11761 | 4 | ||||
-rw-r--r-- | src/ext/ht.h | 1 | ||||
-rw-r--r-- | src/or/dns.c | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/changes/bug11761 b/changes/bug11761 new file mode 100644 index 0000000000..ffcae5a71d --- /dev/null +++ b/changes/bug11761 @@ -0,0 +1,4 @@ + o Minor bugfixes: + - Fix compilation when DNS_CACHE_DEBUG is enabled. Fixes bug 11761; + bugfix on 0.2.3.13-alpha. Found by "cypherpunks". + diff --git a/src/ext/ht.h b/src/ext/ht.h index 4a68673e6e..871f5bbd2d 100644 --- a/src/ext/ht.h +++ b/src/ext/ht.h @@ -58,6 +58,7 @@ #define HT_NEXT_RMV(name, head, elm) name##_HT_NEXT_RMV((head), (elm)) #define HT_CLEAR(name, head) name##_HT_CLEAR(head) #define HT_INIT(name, head) name##_HT_INIT(head) +#define HT_REP_IS_BAD_(name, head) name##_HT_REP_IS_BAD_(head) /* Helper: */ static INLINE unsigned ht_improve_hash(unsigned h) diff --git a/src/or/dns.c b/src/or/dns.c index 36271939b4..a9c4318651 100644 --- a/src/or/dns.c +++ b/src/or/dns.c @@ -2174,7 +2174,7 @@ static void assert_cache_ok_(void) { cached_resolve_t **resolve; - int bad_rep = _cache_map_HT_REP_IS_BAD(&cache_root); + int bad_rep = HT_REP_IS_BAD_(cache_map, &cache_root); if (bad_rep) { log_err(LD_BUG, "Bad rep type %d on dns cache hash table", bad_rep); tor_assert(!bad_rep); |