when building with OPENSSL_NO_DEPRECATED defined BN_zero is a macro
authorNils Larsch <nils@openssl.org>
Mon, 28 Mar 2005 15:06:29 +0000 (15:06 +0000)
committerNils Larsch <nils@openssl.org>
Mon, 28 Mar 2005 15:06:29 +0000 (15:06 +0000)
which cannot be evaluated in an if statement

crypto/dsa/dsa_gen.c

index 74da6be..6a6be3b 100644 (file)
@@ -210,7 +210,7 @@ static int dsa_builtin_paramgen(DSA *ret, int bits,
                                goto err;
 
                        /* step 7 */
-                       if (!BN_zero(W)) goto err;
+                       BN_zero(W);
                        /* now 'buf' contains "SEED + offset - 1" */
                        for (k=0; k<=n; k++)
                                {