summaryrefslogtreecommitdiff
path: root/src/feature/control/control_cmd.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2020-06-24 15:48:47 -0400
committerDavid Goulet <dgoulet@torproject.org>2020-06-24 15:48:47 -0400
commitfd5b2d0f1c8a83d10e9a07f88cf8d9e69c98774a (patch)
tree39cebcfa7c487c39680fc0e231c8e2a29e06b886 /src/feature/control/control_cmd.c
parent7934dcc6f38be52d09d5a2fec33efd6fb1b613a8 (diff)
parentc8fd7b7040b9c036438afc493352fbccb4c1d357 (diff)
downloadtor-fd5b2d0f1c8a83d10e9a07f88cf8d9e69c98774a.tar.gz
tor-fd5b2d0f1c8a83d10e9a07f88cf8d9e69c98774a.zip
Merge branch 'tor-github/pr/1935'
Diffstat (limited to 'src/feature/control/control_cmd.c')
-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 ff1014632d..a37f285d9e 100644
--- a/src/feature/control/control_cmd.c
+++ b/src/feature/control/control_cmd.c
@@ -1462,7 +1462,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;