summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-11-25 10:42:00 -0500
committerNick Mathewson <nickm@torproject.org>2015-11-25 22:29:59 -0500
commitddcbe264745a0c10d80d8ad74125d23eb251662d (patch)
treeb522f4302d71982a38ad0caf34b77b6c675103c2 /src/or/config.c
parent10fdee628552bca65ddb86b17e0b057628ad3703 (diff)
downloadtor-ddcbe264745a0c10d80d8ad74125d23eb251662d.tar.gz
tor-ddcbe264745a0c10d80d8ad74125d23eb251662d.zip
Now that crypto_rand() cannot fail, it should return void.
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/config.c b/src/or/config.c
index fa860af337..431d3664c5 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -7329,8 +7329,7 @@ init_cookie_authentication(const char *fname, const char *header,
/* Generate the cookie */
*cookie_out = tor_malloc(cookie_len);
- if (crypto_rand((char *)*cookie_out, cookie_len) < 0)
- goto done;
+ crypto_rand((char *)*cookie_out, cookie_len);
/* Create the string that should be written on the file. */
memcpy(cookie_file_str, header, strlen(header));