]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - engines/ccgost/gost2001.c
Use p==NULL not !p (in if statements, mainly)
[thirdparty/openssl.git] / engines / ccgost / gost2001.c
index 8b56a30471cc9b745b787585218bf739a7684f17..6d41f31f21def5a82f02243fd5866cf3ca4a37f2 100644 (file)
@@ -393,7 +393,7 @@ int gost2001_compute_public(EC_KEY *ec)
         goto err;
     }
     BN_CTX_start(ctx);
-    if (!(priv_key = EC_KEY_get0_private_key(ec))) {
+    if ((priv_key = EC_KEY_get0_private_key(ec)) == NULL) {
         GOSTerr(GOST_F_GOST2001_COMPUTE_PUBLIC, ERR_R_EC_LIB);
         goto err;
     }