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 74da6becd558a54a5317cc37e7d55da78e19a1b2..6a6be3b57537d864aae8d49692f9abb63ee9e427 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++)
                                {