diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-11-25 10:42:00 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-11-25 22:29:59 -0500 |
commit | ddcbe264745a0c10d80d8ad74125d23eb251662d (patch) | |
tree | b522f4302d71982a38ad0caf34b77b6c675103c2 /src/or/connection_or.c | |
parent | 10fdee628552bca65ddb86b17e0b057628ad3703 (diff) | |
download | tor-ddcbe264745a0c10d80d8ad74125d23eb251662d.tar.gz tor-ddcbe264745a0c10d80d8ad74125d23eb251662d.zip |
Now that crypto_rand() cannot fail, it should return void.
Diffstat (limited to 'src/or/connection_or.c')
-rw-r--r-- | src/or/connection_or.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c index a967c93aca..c454d3f076 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -2290,8 +2290,7 @@ connection_or_send_auth_challenge_cell(or_connection_t *conn) auth_challenge_cell_t *ac = auth_challenge_cell_new(); - if (crypto_rand((char*)ac->challenge, sizeof(ac->challenge)) < 0) - goto done; + crypto_rand((char*)ac->challenge, sizeof(ac->challenge)); auth_challenge_cell_add_methods(ac, AUTHTYPE_RSA_SHA256_TLSSECRET); auth_challenge_cell_set_n_methods(ac, |