diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2015-03-12 18:56:48 +0100 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2015-03-12 18:57:57 +0100 |
commit | 447769dd283f642f6a84a27a10ac1f3c36ad4900 (patch) | |
tree | 62ca3b6c3276c566f35d9e7d4565f919b32bd977 /src | |
parent | 68e9f364a01fa8efadd06745d2e54d699996646a (diff) | |
download | tor-447769dd283f642f6a84a27a10ac1f3c36ad4900.tar.gz tor-447769dd283f642f6a84a27a10ac1f3c36ad4900.zip |
Don't init control authchallenge nonce as assert side effect
Fixes part of bug 15211.
Diffstat (limited to 'src')
-rw-r--r-- | src/or/control.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/control.c b/src/or/control.c index e25c3b2954..819a57f214 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -3102,8 +3102,8 @@ handle_control_authchallenge(control_connection_t *conn, uint32_t len, tor_free(client_nonce); return -1; } - - tor_assert(!crypto_rand(server_nonce, SAFECOOKIE_SERVER_NONCE_LEN)); + int fail = crypto_rand(server_nonce, SAFECOOKIE_SERVER_NONCE_LEN); + tor_assert(!fail); /* Now compute and send the server-to-controller response, and the * server's nonce. */ |