summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-05-10 09:22:32 -0400
committerNick Mathewson <nickm@torproject.org>2018-05-10 09:22:32 -0400
commit1118536142d03ab3e3958788c9bedd354b9fc8fa (patch)
tree85afb95fa8634d4527f5a1779aefcc6df20b8ad5
parentf36fea697eb480d9e67cfbd69b122427802fea85 (diff)
parentb343ba90604de524b5fa7d87a6daf76fcc118adb (diff)
downloadtor-1118536142d03ab3e3958788c9bedd354b9fc8fa.tar.gz
tor-1118536142d03ab3e3958788c9bedd354b9fc8fa.zip
Merge branch 'maint-0.3.3' into release-0.3.3
-rw-r--r--changes/bug260695
-rw-r--r--src/or/hs_descriptor.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/changes/bug26069 b/changes/bug26069
new file mode 100644
index 0000000000..192e97d782
--- /dev/null
+++ b/changes/bug26069
@@ -0,0 +1,5 @@
+ o Minor bugfixes (hidden service v3):
+ - When parsing the descriptor signature, look for the token plus an extra
+ white-space at the end. This is more correct but also will allow us to
+ support new fields that might start with "signature". Fixes bug 26069;
+ bugfix on 0.3.0.1-alpha.
diff --git a/src/or/hs_descriptor.c b/src/or/hs_descriptor.c
index 7388807bc5..52a58d926d 100644
--- a/src/or/hs_descriptor.c
+++ b/src/or/hs_descriptor.c
@@ -1895,7 +1895,7 @@ desc_sig_is_valid(const char *b64_sig,
}
/* Find the start of signature. */
- sig_start = tor_memstr(encoded_desc, encoded_len, "\n" str_signature);
+ sig_start = tor_memstr(encoded_desc, encoded_len, "\n" str_signature " ");
/* Getting here means the token parsing worked for the signature so if we
* can't find the start of the signature, we have a code flow issue. */
if (!sig_start) {