summaryrefslogtreecommitdiff
path: root/src/or/control.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-03-13 09:41:49 -0400
committerNick Mathewson <nickm@torproject.org>2015-03-13 09:41:49 -0400
commit3a68f2f54ed67176a8ed0b7aa276ef58a54b26db (patch)
tree2384f4434651629918e6c2de50d2308836bca7cc /src/or/control.c
parent833b6d30bec568660e3a9cdeacd1e8c2837f1a6a (diff)
downloadtor-3a68f2f54ed67176a8ed0b7aa276ef58a54b26db.tar.gz
tor-3a68f2f54ed67176a8ed0b7aa276ef58a54b26db.zip
const-ify the new failure vars, and one old one
Diffstat (limited to 'src/or/control.c')
-rw-r--r--src/or/control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 819a57f214..34d539bcc4 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -3102,7 +3102,7 @@ handle_control_authchallenge(control_connection_t *conn, uint32_t len,
tor_free(client_nonce);
return -1;
}
- int fail = crypto_rand(server_nonce, SAFECOOKIE_SERVER_NONCE_LEN);
+ const int fail = crypto_rand(server_nonce, SAFECOOKIE_SERVER_NONCE_LEN);
tor_assert(!fail);
/* Now compute and send the server-to-controller response, and the