From ba520e6a6d1dce259e554b9d928c164ff842d93a Mon Sep 17 00:00:00 2001 From: tb <> Date: Tue, 20 Feb 2024 14:58:16 +0000 Subject: x509_asid: NULL out min/max on extract_min_max() failure requested by/ok 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 c9d3c8d7c0..2fda58c3fa 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.42 2024/02/19 15:44:10 tb Exp $ */ +/* $OpenBSD: x509_asid.c,v 1.43 2024/02/20 14:58:16 tb Exp $ */ /* * Contributed to the OpenSSL Project by the American Registry for * Internet Numbers ("ARIN"). @@ -558,6 +558,8 @@ extract_min_max(ASIdOrRange *aor, ASN1_INTEGER **min, ASN1_INTEGER **max) *max = aor->u.range->max; return 1; } + *min = NULL; + *max = NULL; return 0; } -- cgit v1.2.3-55-g6feb