From 36826aba263c84f9ceb3b6777e150eaf1f82e6d1 Mon Sep 17 00:00:00 2001 From: tb <> Date: Thu, 12 May 2022 20:00:06 +0000 Subject: Small readability tweak suggested by jsing --- src/lib/libcrypto/x509/x509_asid.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/libcrypto/x509/x509_asid.c b/src/lib/libcrypto/x509/x509_asid.c index 5967e26d4d..37c38d9b68 100644 --- a/src/lib/libcrypto/x509/x509_asid.c +++ b/src/lib/libcrypto/x509/x509_asid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_asid.c,v 1.33 2022/05/12 19:56:43 tb Exp $ */ +/* $OpenBSD: x509_asid.c,v 1.34 2022/05/12 20:00:06 tb Exp $ */ /* * Contributed to the OpenSSL Project by the American Registry for * Internet Numbers ("ARIN"). @@ -918,6 +918,7 @@ asid_contains(ASIdOrRanges *parent, ASIdOrRanges *child) if (child == NULL || parent == child) return 1; + if (parent == NULL) return 0; @@ -951,6 +952,7 @@ X509v3_asid_subset(ASIdentifiers *child, ASIdentifiers *parent) { if (child == NULL || child == parent) return 1; + if (parent == NULL) return 0; -- cgit v1.2.3-55-g6feb