summaryrefslogtreecommitdiffstats
path: root/src/crypto/bn/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/bn/random.c')
-rw-r--r--src/crypto/bn/random.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/crypto/bn/random.c b/src/crypto/bn/random.c
index 285bf26..3be7510 100644
--- a/src/crypto/bn/random.c
+++ b/src/crypto/bn/random.c
@@ -321,8 +321,6 @@ int BN_generate_dsa_nonce(BIGNUM *out, const BIGNUM *range, const BIGNUM *priv,
ret = 1;
err:
- if (k_bytes) {
- OPENSSL_free(k_bytes);
- }
+ OPENSSL_free(k_bytes);
return ret;
}