diff options
Diffstat (limited to 'src/or/rendcommon.c')
-rw-r--r-- | src/or/rendcommon.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c index 38e8d7b01..91caa18e3 100644 --- a/src/or/rendcommon.c +++ b/src/or/rendcommon.c @@ -146,8 +146,7 @@ int rend_get_service_id(crypto_pk_env_t *pk, char *out) tor_assert(pk); if (crypto_pk_get_digest(pk, buf) < 0) return -1; - if (base32_encode(out, REND_SERVICE_ID_LEN+1, buf, 10) < 0) - return -1; + base32_encode(out, REND_SERVICE_ID_LEN+1, buf, 10); return 0; } |