diff options
author | Roger Dingledine <arma@torproject.org> | 2004-07-22 08:30:06 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-07-22 08:30:06 +0000 |
commit | 7459d067a5b158f39ac8ff9a90ce6059e91d4302 (patch) | |
tree | 74501e22937458399ab1d98939a2261d60a57e8d /src/or/rendcommon.c | |
parent | ea43172c11af49dcf770fdcbcf80fcbef3437c19 (diff) | |
download | tor-7459d067a5b158f39ac8ff9a90ce6059e91d4302.tar.gz tor-7459d067a5b158f39ac8ff9a90ce6059e91d4302.zip |
now base16_encode() and base32_encode() can't ever fail
svn:r2103
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 38e8d7b013..91caa18e39 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; } |