diff options
author | Matt Caswell <matt@openssl.org> | 2017-07-03 11:47:10 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2017-08-21 08:44:44 +0100 |
commit | 638c2dd0ab504e22af08e4d56b43959a8be2382e (patch) | |
tree | 4a5a32a09b319fac504bebba4cbf56d40f144e23 /crypto/x509v3 | |
parent | 42d7d7dd6a9ea5d610856b7ccec1767ba93ed30c (diff) |
Updates following feedback on OPENSSL_assert() removal
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3740)
Diffstat (limited to 'crypto/x509v3')
-rw-r--r-- | crypto/x509v3/v3_addr.c | 2 | ||||
-rw-r--r-- | crypto/x509v3/v3_asid.c | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/crypto/x509v3/v3_addr.c b/crypto/x509v3/v3_addr.c index f08e6a6902..64d27f26e5 100644 --- a/crypto/x509v3/v3_addr.c +++ b/crypto/x509v3/v3_addr.c @@ -430,8 +430,6 @@ static int make_addressRange(IPAddressOrRange **result, if ((aor = IPAddressOrRange_new()) == NULL) return 0; aor->type = IPAddressOrRange_addressRange; - if (!ossl_assert(aor->u.addressRange == NULL)) - return 0; if ((aor->u.addressRange = IPAddressRange_new()) == NULL) goto err; if (aor->u.addressRange->min == NULL && diff --git a/crypto/x509v3/v3_asid.c b/crypto/x509v3/v3_asid.c index 771f6da203..66259bae1b 100644 --- a/crypto/x509v3/v3_asid.c +++ b/crypto/x509v3/v3_asid.c @@ -168,8 +168,6 @@ int X509v3_asid_add_inherit(ASIdentifiers *asid, int which) if (*choice == NULL) { if ((*choice = ASIdentifierChoice_new()) == NULL) return 0; - if (!ossl_assert((*choice)->u.inherit == NULL)) - return 0; if (((*choice)->u.inherit = ASN1_NULL_new()) == NULL) return 0; (*choice)->type = ASIdentifierChoice_inherit; @@ -202,8 +200,6 @@ int X509v3_asid_add_id_or_range(ASIdentifiers *asid, if (*choice == NULL) { if ((*choice = ASIdentifierChoice_new()) == NULL) return 0; - if (!ossl_assert((*choice)->u.asIdsOrRanges == NULL)) - return 0; (*choice)->u.asIdsOrRanges = sk_ASIdOrRange_new(ASIdOrRange_cmp); if ((*choice)->u.asIdsOrRanges == NULL) return 0; @@ -238,7 +234,7 @@ int X509v3_asid_add_id_or_range(ASIdentifiers *asid, static int extract_min_max(ASIdOrRange *aor, ASN1_INTEGER **min, ASN1_INTEGER **max) { - if (!ossl_assert(aor != NULL && min != NULL && max != NULL)) + if (!ossl_assert(aor != NULL)) return 0; switch (aor->type) { case ASIdOrRange_id: |