summaryrefslogtreecommitdiff
path: root/src/or/relay.c
diff options
context:
space:
mode:
authorHassan Alsibyani <sibyani@mit.edu>2016-02-06 12:14:39 -0500
committerHassan Alsibyani <sibyani@mit.edu>2016-02-06 12:14:39 -0500
commitedd93f9de8aedec41afc7f6472ab381bc34d0246 (patch)
treee70f7eb5b23a3eb9881d459a851f8fce84b45c66 /src/or/relay.c
parent1f5cdf2b6c72ae89eea630a2c4693273ff1aee6c (diff)
downloadtor-edd93f9de8aedec41afc7f6472ab381bc34d0246.tar.gz
tor-edd93f9de8aedec41afc7f6472ab381bc34d0246.zip
changing output of crypto_cipher_crypt_inplace from int to void
Diffstat (limited to 'src/or/relay.c')
-rw-r--r--src/or/relay.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/or/relay.c b/src/or/relay.c
index aea51a165b..9d44428c09 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -148,20 +148,15 @@ relay_digest_matches(crypto_digest_t *digest, cell_t *cell)
*
* If <b>encrypt_mode</b> is 1 then encrypt, else decrypt.
*
- * Return -1 if the crypto fails, else return 0.
+ * Returns 0.
*/
static int
relay_crypt_one_payload(crypto_cipher_t *cipher, uint8_t *in,
int encrypt_mode)
{
- int r;
(void)encrypt_mode;
- r = crypto_cipher_crypt_inplace(cipher, (char*) in, CELL_PAYLOAD_SIZE);
+ crypto_cipher_crypt_inplace(cipher, (char*) in, CELL_PAYLOAD_SIZE);
- if (r) {
- log_warn(LD_BUG,"Error during relay encryption");
- return -1;
- }
return 0;
}