aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendmid.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-07-22 08:30:06 +0000
committerRoger Dingledine <arma@torproject.org>2004-07-22 08:30:06 +0000
commit7459d067a5b158f39ac8ff9a90ce6059e91d4302 (patch)
tree74501e22937458399ab1d98939a2261d60a57e8d /src/or/rendmid.c
parentea43172c11af49dcf770fdcbcf80fcbef3437c19 (diff)
downloadtor-7459d067a5b158f39ac8ff9a90ce6059e91d4302.tar
tor-7459d067a5b158f39ac8ff9a90ce6059e91d4302.tar.gz
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.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/or/rendmid.c b/src/or/rendmid.c
index e49587076..6c2b37295 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(