diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-11-25 22:33:49 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-11-25 22:33:49 -0500 |
commit | e5754c42d124549b3fd8e8d7c11d4dde3b5acec1 (patch) | |
tree | b0ff2b0c1f4cfb44f087df8d062e3a56fd766046 /src/common/tortls.c | |
parent | c875265bbbddc50674f65169ee49d5612bef72a7 (diff) | |
parent | 943369f927967268cacd2067ccae0bc5f1c5835e (diff) | |
download | tor-e5754c42d124549b3fd8e8d7c11d4dde3b5acec1.tar.gz tor-e5754c42d124549b3fd8e8d7c11d4dde3b5acec1.zip |
Merge branch 'bug17686_v2_027'
Diffstat (limited to 'src/common/tortls.c')
-rw-r--r-- | src/common/tortls.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c index 8bd264d490..79c6998806 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -517,8 +517,7 @@ MOCK_IMPL(STATIC X509 *, goto error; { /* our serial number is 8 random bytes. */ - if (crypto_rand((char *)serial_tmp, sizeof(serial_tmp)) < 0) - goto error; + crypto_rand((char *)serial_tmp, sizeof(serial_tmp)); if (!(serial_number = BN_bin2bn(serial_tmp, sizeof(serial_tmp), NULL))) goto error; if (!(BN_to_ASN1_INTEGER(serial_number, X509_get_serialNumber(x509)))) |