diff options
author | Roger Dingledine <arma@torproject.org> | 2007-10-10 23:44:10 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-10-10 23:44:10 +0000 |
commit | 8e8d2defe3a962fd33a65e7ceb608cb404e93fd7 (patch) | |
tree | 5d60c707e2f8ce3189ffad3b6ba4226e262a8b0d /src | |
parent | 19c2306f5304eb8722355a7a2ca32482de636f83 (diff) | |
download | tor-8e8d2defe3a962fd33a65e7ceb608cb404e93fd7.tar.gz tor-8e8d2defe3a962fd33a65e7ceb608cb404e93fd7.zip |
bugfix on r11480:
Stop calling tor_strlower() on uninitialized memory in some cases.
svn:r11858
Diffstat (limited to 'src')
-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 a5264c1bd0..7bb3228774 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -2355,10 +2355,10 @@ router_parse_addr_policy_from_string(const char *s, int assume_action) return NULL; } cp = line; + tor_strlower(line); } else { /* assume an already well-formed address policy line */ cp = s; } - tor_strlower(line); eos = cp + strlen(cp); tok = get_next_token(&cp, eos, routerdesc_token_table); |