aboutsummaryrefslogtreecommitdiff
path: root/src/feature/control/control.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2019-02-26 12:33:23 +0200
committerGeorge Kadianakis <desnacked@riseup.net>2019-02-26 12:33:23 +0200
commit7fbfdf2af731f500e3df3ca8207e6822f87f1bc9 (patch)
tree7dd1beac6cc0854d7b4930ec111ec0cb261cb588 /src/feature/control/control.c
parent626e6d2c394673ca46a44616a76b33699d0cf763 (diff)
parentf632335feb27b45a3ee5eb64690826bda52467bd (diff)
downloadtor-7fbfdf2af731f500e3df3ca8207e6822f87f1bc9.tar.gz
tor-7fbfdf2af731f500e3df3ca8207e6822f87f1bc9.zip
Merge branch 'tor-github/pr/611'
Diffstat (limited to 'src/feature/control/control.c')
-rw-r--r--src/feature/control/control.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/feature/control/control.c b/src/feature/control/control.c
index e95e58d919..f4bb0d38a8 100644
--- a/src/feature/control/control.c
+++ b/src/feature/control/control.c
@@ -4444,7 +4444,8 @@ handle_control_hsfetch(control_connection_t *conn, uint32_t len,
} else if (strcmpstart(arg1, v2_str) == 0 &&
rend_valid_descriptor_id(arg1 + v2_str_len) &&
base32_decode(digest, sizeof(digest), arg1 + v2_str_len,
- REND_DESC_ID_V2_LEN_BASE32) == 0) {
+ REND_DESC_ID_V2_LEN_BASE32) ==
+ REND_DESC_ID_V2_LEN_BASE32) {
/* We have a well formed version 2 descriptor ID. Keep the decoded value
* of the id. */
desc_id = digest;