Fix a ** 0 mod 1 = 0 for real this time.
[oweals/openssl.git] / crypto / bn / bn_rand.c
index 2764c8a30730e573c6c821d2c823ed00d5066eaa..66a175c32a2155e3ddd29d2863ddda3907c26d6e 100644 (file)
@@ -315,7 +315,7 @@ int BN_generate_dsa_nonce(BIGNUM *out, const BIGNUM *range,
     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. */