diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-02-04 12:30:48 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-02-04 12:30:48 -0500 |
commit | 1bac468882fd732460d8a25735131d632f977bfe (patch) | |
tree | 5d0abc611d1a95ce06b4146237a96df469c7811a /src/test/test_dns.c | |
parent | 5da517e6897c4b997bb165dfd11e95f8f9c2bbbe (diff) | |
download | tor-1bac468882fd732460d8a25735131d632f977bfe.tar.gz tor-1bac468882fd732460d8a25735131d632f977bfe.zip |
Fix two problems in the 0.2.8.x unit tests
1. We were sometimes using libevent uninitialized, which is Not Allowed.
2. The malformed-PTR dns test was supposed to get a -1 output... but
the test was wrong, since it forgot that in-addr.arpa addresses
are in reverse order.
Bugs not in any released tor.
Diffstat (limited to 'src/test/test_dns.c')
-rw-r--r-- | src/test/test_dns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_dns.c b/src/test/test_dns.c index 6fdbe905e0..5289ca58ff 100644 --- a/src/test/test_dns.c +++ b/src/test/test_dns.c @@ -490,7 +490,7 @@ NS(test_main)(void *arg) (void)arg; - TO_CONN(exitconn)->address = tor_strdup("127.0.0.1.in-addr.arpa"); + TO_CONN(exitconn)->address = tor_strdup("1.0.0.127.in-addr.arpa"); NS_MOCK(router_my_exit_policy_is_reject_star); |