]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
CLA: trivial
authorHorimotoYasuhiro <horimoto@clear-code.com>
Mon, 29 May 2017 11:08:26 +0000 (20:08 +0900)
committerRich Salz <rsalz@openssl.org>
Wed, 31 May 2017 12:56:03 +0000 (08:56 -0400)
Fix coding style

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3581)

crypto/x509v3/pcy_data.c

index cf1d635eccc23b216400986fd58412ffcbf3f8c0..757b101dd6aefe353600e2f2152e4b2b2d289e4b 100644 (file)
@@ -17,7 +17,7 @@
 
 void policy_data_free(X509_POLICY_DATA *data)
 {
-    if (!data)
+    if (data == NULL)
         return;
     ASN1_OBJECT_free(data->valid_policy);
     /* Don't free qualifiers if shared */
@@ -40,11 +40,11 @@ X509_POLICY_DATA *policy_data_new(POLICYINFO *policy,
 {
     X509_POLICY_DATA *ret;
     ASN1_OBJECT *id;
-    if (!policy && !cid)
+    if (policy == NULL && cid == NULL)
         return NULL;
     if (cid) {
         id = OBJ_dup(cid);
-        if (!id)
+        if (id == NULL)
             return NULL;
     } else
         id = NULL;