X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fx509v3%2Fpcy_data.c;h=03631d7a10358a384cf7ecabcb3ec0ba11dc2bc8;hb=99119000add47e4d1d9241f4e76f57d98439a766;hp=bb2760abc2ec95b7a45e78a6ffb006a5e1b043e1;hpb=64b25758edca688a30f02c260262150f7ad0bc7d;p=oweals%2Fopenssl.git diff --git a/crypto/x509v3/pcy_data.c b/crypto/x509v3/pcy_data.c index bb2760abc2..03631d7a10 100644 --- a/crypto/x509v3/pcy_data.c +++ b/crypto/x509v3/pcy_data.c @@ -1,4 +1,3 @@ -/* pcy_data.c */ /* * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL project * 2004. @@ -99,10 +98,10 @@ X509_POLICY_DATA *policy_data_new(POLICYINFO *policy, } else id = NULL; ret = OPENSSL_zalloc(sizeof(*ret)); - if (!ret) + if (ret == NULL) return NULL; ret->expected_policy_set = sk_ASN1_OBJECT_new_null(); - if (!ret->expected_policy_set) { + if (ret->expected_policy_set == NULL) { OPENSSL_free(ret); ASN1_OBJECT_free(id); return NULL;