summaryrefslogtreecommitdiff
path: root/src/feature
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-10-07 08:35:18 -0400
committerNick Mathewson <nickm@torproject.org>2020-10-07 08:35:18 -0400
commit0e2e517019bf3c8779c9a3f81e453277a372c9f3 (patch)
tree9dd7896d6ba3be07ada9ae0ddc8b6c1a810c0443 /src/feature
parentfaac18607521380ff330a6e0b207e7b1d3d35384 (diff)
parent884cad3edffb644a3da8b1e7e704678225cfe4ac (diff)
downloadtor-0e2e517019bf3c8779c9a3f81e453277a372c9f3.tar.gz
tor-0e2e517019bf3c8779c9a3f81e453277a372c9f3.zip
Merge branch 'maint-0.4.3' into maint-0.4.4
Diffstat (limited to 'src/feature')
-rw-r--r--src/feature/control/control_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature/control/control_cmd.c b/src/feature/control/control_cmd.c
index d9a38011de..eb14f101e7 100644
--- a/src/feature/control/control_cmd.c
+++ b/src/feature/control/control_cmd.c
@@ -1430,7 +1430,7 @@ handle_control_hsfetch(control_connection_t *conn,
rend_valid_descriptor_id(arg1 + v2_str_len) &&
base32_decode(digest, sizeof(digest), arg1 + v2_str_len,
REND_DESC_ID_V2_LEN_BASE32) ==
- REND_DESC_ID_V2_LEN_BASE32) {
+ sizeof(digest)) {
/* We have a well formed version 2 descriptor ID. Keep the decoded value
* of the id. */
desc_id = digest;