diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-03-17 22:32:28 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-03-17 22:32:28 +0000 |
commit | fe1b2a4ed449ef0360debec3364461f90d7d3601 (patch) | |
tree | 8c076b00f4039036074330009fde3815c7f236d3 /src/or/router.c | |
parent | e17e6371d1b2ef034f0860a19e5825cae61600be (diff) | |
download | tor-fe1b2a4ed449ef0360debec3364461f90d7d3601.tar.gz tor-fe1b2a4ed449ef0360debec3364461f90d7d3601.zip |
r18900@catbus: nickm | 2008-03-17 18:32:25 -0400
Fix tests and routerdesc behavior on trunk.
svn:r14084
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/router.c b/src/or/router.c index c6f1195366..271dc7f549 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -1686,7 +1686,8 @@ router_dump_router_to_string(char *s, size_t maxlen, routerinfo_t *router, } /* Write the exit policy to the end of 's'. */ - if (dns_seems_to_be_broken()) { + if (dns_seems_to_be_broken() || + !router->exit_policy || !smartlist_len(router->exit_policy)) { /* DNS is screwed up; don't claim to be an exit. */ strlcat(s+written, "reject *:*\n", maxlen-written); written += strlen("reject *:*\n"); |