From: tb Date: Tue, 20 Feb 2024 14:58:16 +0000 (+0000) Subject: x509_asid: NULL out min/max on extract_min_max() failure X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4ec4c6bcbc49a0e76bf59298e4892a226f9d5a1d;p=openbsd x509_asid: NULL out min/max on extract_min_max() failure requested by/ok jsing --- 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; }