From 4ec4c6bcbc49a0e76bf59298e4892a226f9d5a1d Mon Sep 17 00:00:00 2001 From: tb Date: Tue, 20 Feb 2024 14:58:16 +0000 Subject: [PATCH] x509_asid: NULL out min/max on extract_min_max() failure requested by/ok jsing --- lib/libcrypto/x509/x509_asid.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/libcrypto/x509/x509_asid.c b/lib/libcrypto/x509/x509_asid.c index c9d3c8d7c0f..2fda58c3fa6 100644 --- a/lib/libcrypto/x509/x509_asid.c +++ b/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; } -- 2.20.1