projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use p==NULL not !p (in if statements, mainly)
[openssl.git]
/
engines
/
ccgost
/
gost_ameth.c
diff --git
a/engines/ccgost/gost_ameth.c
b/engines/ccgost/gost_ameth.c
index b6c47f086b0c43b43e8dc8d51b1c6940ad2cb143..5ca3a6e62954129f61f58be9cb9ae2fe0a341177 100644
(file)
--- a/
engines/ccgost/gost_ameth.c
+++ b/
engines/ccgost/gost_ameth.c
@@
-200,7
+200,7
@@
BIGNUM *gost_get0_priv_key(const EVP_PKEY *pkey)
if (!ec) {
return NULL;
}
- if (
!(priv = EC_KEY_get0_private_key(ec))
)
+ if (
(priv = EC_KEY_get0_private_key(ec)) == NULL
)
return NULL;
return (BIGNUM *)priv;
}