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]
/
crypto
/
x509v3
/
v3_pcons.c
diff --git
a/crypto/x509v3/v3_pcons.c
b/crypto/x509v3/v3_pcons.c
index 3349cef0271d4ebb56b9df7fa2d6985f06f7eb32..a1b27d6ae35612b536cfb6e1e58c1efe2a820713 100644
(file)
--- a/
crypto/x509v3/v3_pcons.c
+++ b/
crypto/x509v3/v3_pcons.c
@@
-108,7
+108,8
@@
static void *v2i_POLICY_CONSTRAINTS(const X509V3_EXT_METHOD *method,
POLICY_CONSTRAINTS *pcons = NULL;
CONF_VALUE *val;
int i;
- if (!(pcons = POLICY_CONSTRAINTS_new())) {
+
+ if ((pcons = POLICY_CONSTRAINTS_new()) == NULL) {
X509V3err(X509V3_F_V2I_POLICY_CONSTRAINTS, ERR_R_MALLOC_FAILURE);
return NULL;
}