summaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_common.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/hs/hs_common.c
parent626e6d2c394673ca46a44616a76b33699d0cf763 (diff)
parentf632335feb27b45a3ee5eb64690826bda52467bd (diff)
downloadtor-7fbfdf2af731f500e3df3ca8207e6822f87f1bc9.tar.gz
tor-7fbfdf2af731f500e3df3ca8207e6822f87f1bc9.zip
Merge branch 'tor-github/pr/611'
Diffstat (limited to 'src/feature/hs/hs_common.c')
-rw-r--r--src/feature/hs/hs_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/feature/hs/hs_common.c b/src/feature/hs/hs_common.c
index ebe49f09a5..14655c53a5 100644
--- a/src/feature/hs/hs_common.c
+++ b/src/feature/hs/hs_common.c
@@ -926,7 +926,8 @@ hs_parse_address(const char *address, ed25519_public_key_t *key_out,
}
/* Decode address so we can extract needed fields. */
- if (base32_decode(decoded, sizeof(decoded), address, strlen(address)) < 0) {
+ if (base32_decode(decoded, sizeof(decoded), address, strlen(address))
+ != sizeof(decoded)) {
log_warn(LD_REND, "Service address %s can't be decoded.",
escaped_safe_str(address));
goto invalid;