diff options
author | Roger Dingledine <arma@torproject.org> | 2009-09-16 20:37:43 -0400 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2009-09-16 20:37:43 -0400 |
commit | 9eb5edc0935939cc5aae2b382a9cfa324a476ef5 (patch) | |
tree | ba8bcea233d00e201711aab26e13824cde762f05 /src/or/routerparse.c | |
parent | 61eb3711eee2be8e37ace89c8020ce4ae8502b93 (diff) | |
parent | c1a6fb42ac08ab7ab729edca1837401d0f117fd1 (diff) | |
download | tor-9eb5edc0935939cc5aae2b382a9cfa324a476ef5.tar.gz tor-9eb5edc0935939cc5aae2b382a9cfa324a476ef5.zip |
Merge commit 'sebastian/specconformance'
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r-- | src/or/routerparse.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c index 4f88603c33..e35ece06de 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -2655,6 +2655,10 @@ networkstatus_parse_vote_from_string(const char *s, const char **eos_out, if (! n_signatures) { log_warn(LD_DIR, "No signatures on networkstatus vote."); goto err; + } else if (ns->type == NS_TYPE_VOTE && n_signatures != 1) { + log_warn(LD_DIR, "Received more than one signature on a " + "network-status vote."); + goto err; } if (eos_out) |