hs: Correctly validate v3 descriptor encrypted length

The encrypted_data_length_is_valid() function wasn't validating correctly the
length of the encrypted data of a v3 descriptor. The side effect of this is
that an HSDir was rejecting the descriptor and ultimately not storing it.

Fixes #22447

Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
David Goulet
2017-05-30 10:27:42 -04:00
parent 83439e78cc
commit 5b33d95a3d
3 changed files with 9 additions and 22 deletions
+3
View File
@@ -0,0 +1,3 @@
o Major bugfixes (hidden service v3):
- HSDir failed to validate the encrypted size of a v3 descriptor and thus
rejecting it. Fixes bug 22447; bugfix on tor-0.3.0.1-alpha.