diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-07-10 22:44:32 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-07-10 22:44:32 +0000 |
commit | 39dc589d328ffe63cb17560da19a4b120d4a247a (patch) | |
tree | 435cf364675914e4b20f95779527ad5252006399 /src/or/routerparse.c | |
parent | fa1376014b2d6c0daffa0e8801aec6f572ac29fa (diff) | |
download | tor-39dc589d328ffe63cb17560da19a4b120d4a247a.tar.gz tor-39dc589d328ffe63cb17560da19a4b120d4a247a.zip |
r13691@catbus: nickm | 2007-07-10 18:44:30 -0400
Fix an assert error in 455 patch.
svn:r10788
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r-- | src/or/routerparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c index de1c39c06d..4b6c22e15e 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -2097,7 +2097,6 @@ router_parse_addr_policy_from_string(const char *s, int assume_action) /* *s might not end with \n, so we need to extend it with one. */ len = strlen(s); - eos = s + len; cp = tmp = tor_malloc(len+2); for (idx = 0; idx < len; ++idx) { tmp[idx] = TOR_TOLOWER(s[idx]); @@ -2113,6 +2112,7 @@ router_parse_addr_policy_from_string(const char *s, int assume_action) tor_free(tmp); cp = tmp = new_str; } + eos = cp + strlen(cp); tok = get_next_token(&cp, eos, routerdesc_token_table); if (tok->tp == _ERR) { log_warn(LD_DIR, "Error reading address policy: %s", tok->error); |