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/rendmid.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/rendmid.c')
-rw-r--r-- | src/or/rendmid.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/or/rendmid.c b/src/or/rendmid.c index e495870763..6c2b372956 100644 --- a/src/or/rendmid.c +++ b/src/or/rendmid.c @@ -69,10 +69,7 @@ rend_mid_establish_intro(circuit_t *circ, const char *request, int request_len) goto err; } - if (base32_encode(serviceid, REND_SERVICE_ID_LEN+1, - pk_digest,10)) { - goto err; - } + base32_encode(serviceid, REND_SERVICE_ID_LEN+1, pk_digest,10); /* Close any other intro circuits with the same pk. */ c = NULL; @@ -133,9 +130,7 @@ rend_mid_introduce(circuit_t *circ, const char *request, int request_len) goto err; } - if (base32_encode(serviceid, REND_SERVICE_ID_LEN+1, request,10)) { - goto err; - } + base32_encode(serviceid, REND_SERVICE_ID_LEN+1, request,10); /* The first 20 bytes are all we look at: they have a hash of Bob's PK. */ intro_circ = circuit_get_next_by_pk_and_purpose( |