summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2009-09-16 20:37:43 -0400
committerRoger Dingledine <arma@torproject.org>2009-09-16 20:37:43 -0400
commit9eb5edc0935939cc5aae2b382a9cfa324a476ef5 (patch)
treeba8bcea233d00e201711aab26e13824cde762f05
parent61eb3711eee2be8e37ace89c8020ce4ae8502b93 (diff)
parentc1a6fb42ac08ab7ab729edca1837401d0f117fd1 (diff)
downloadtor-9eb5edc0935939cc5aae2b382a9cfa324a476ef5.tar.gz
tor-9eb5edc0935939cc5aae2b382a9cfa324a476ef5.zip
Merge commit 'sebastian/specconformance'
-rw-r--r--ChangeLog2
-rw-r--r--src/or/routerparse.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index da221acdf7..511d475c09 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,8 @@ Changes in version 0.2.2.2-alpha - 2009-09-??
Found by Matt Edman. Bugfix on 0.2.0.16-alpha.
- Fix parsing for memory or time units given without a space between
the number and the unit. Bugfix on 0.2.2.1-alpha; fixes bug 1076.
+ - A networkstatus vote must contain exactly one signature. Spec
+ conformance issue. Bugfix on 0.2.0.3-alpha.
Changes in version 0.2.2.1-alpha - 2009-08-26
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)