diff options
author | Roger Dingledine <arma@torproject.org> | 2007-01-04 06:36:43 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-01-04 06:36:43 +0000 |
commit | a66d86149b04bf28617603190b3488d6f71231a2 (patch) | |
tree | d6c55c4faa2a1986a5fe1aeee70af2186fe0e1d6 /src/or/routerparse.c | |
parent | da2ff14839eb8a3d4d5ff247184e9c380d0bbe18 (diff) | |
download | tor-a66d86149b04bf28617603190b3488d6f71231a2.tar tor-a66d86149b04bf28617603190b3488d6f71231a2.tar.gz |
avoid a crash-all-the-clients segfault if a rogue dir
authority leaves a "v" line blank.
svn:r9262
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 8cd08d6b1..64c6152db 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -1081,7 +1081,7 @@ routerstatus_parse_entry_from_string(const char **s, smartlist_t *tokens) rs->is_bad_directory = 1; } } - if ((tok = find_first_by_keyword(tokens, K_V))) { + if ((tok = find_first_by_keyword(tokens, K_V)) && tok->n_args) { rs->version_known = 1; if (strcmpstart(tok->args[0], "Tor ")) { rs->version_supports_begindir = 1; |