projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a ** 0 mod 1 = 0 for real this time.
[oweals/openssl.git]
/
crypto
/
bn
/
bn_rand.c
diff --git
a/crypto/bn/bn_rand.c
b/crypto/bn/bn_rand.c
index 2764c8a30730e573c6c821d2c823ed00d5066eaa..66a175c32a2155e3ddd29d2863ddda3907c26d6e 100644
(file)
--- a/
crypto/bn/bn_rand.c
+++ b/
crypto/bn/bn_rand.c
@@
-315,7
+315,7
@@
int BN_generate_dsa_nonce(BIGNUM *out, const BIGNUM *range,
int ret = 0;
k_bytes = OPENSSL_malloc(num_k_bytes);
int ret = 0;
k_bytes = OPENSSL_malloc(num_k_bytes);
- if (
!k_bytes
)
+ if (
k_bytes == NULL
)
goto err;
/* We copy |priv| into a local buffer to avoid exposing its length. */
goto err;
/* We copy |priv| into a local buffer to avoid exposing its length. */