commit | 75ebbd9aa411c5b8b19ded6ace2b34181566b56a | [log] [tgz] |
---|---|---|
author | Rich Salz <rsalz@akamai.com> | Wed May 06 13:43:59 2015 -0400 |
committer | Rich Salz <rsalz@openssl.org> | Mon May 11 10:06:38 2015 -0400 |
tree | 6bc9cd77b2794b25f9cd9aac1c66f4626fb975a5 | |
parent | 344c271eb339fc2982e9a3584a94e51112d84584 [diff] [blame] |
Use p==NULL not !p (in if statements, mainly) Reviewed-by: Tim Hudson <tjh@openssl.org>
diff --git a/crypto/x509v3/v3_bitst.c b/crypto/x509v3/v3_bitst.c index eb6d0f3..9072b42 100644 --- a/crypto/x509v3/v3_bitst.c +++ b/crypto/x509v3/v3_bitst.c
@@ -112,7 +112,7 @@ ASN1_BIT_STRING *bs; int i; BIT_STRING_BITNAME *bnam; - if (!(bs = ASN1_BIT_STRING_new())) { + if ((bs = ASN1_BIT_STRING_new()) == NULL) { X509V3err(X509V3_F_V2I_ASN1_BIT_STRING, ERR_R_MALLOC_FAILURE); return NULL; }