summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2024-02-20 14:58:16 +0000
committertb <>2024-02-20 14:58:16 +0000
commitba520e6a6d1dce259e554b9d928c164ff842d93a (patch)
tree7616180f9a62f7222b4f5043a5b523e928605547 /src/lib
parent648f3795007244c7fde76ec68ced5b21910846eb (diff)
downloadopenbsd-ba520e6a6d1dce259e554b9d928c164ff842d93a.tar.gz
openbsd-ba520e6a6d1dce259e554b9d928c164ff842d93a.tar.bz2
openbsd-ba520e6a6d1dce259e554b9d928c164ff842d93a.zip
x509_asid: NULL out min/max on extract_min_max() failure
requested by/ok jsing
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/x509/x509_asid.c4
1 files changed, 3 insertions, 1 deletions
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 @@
1/* $OpenBSD: x509_asid.c,v 1.42 2024/02/19 15:44:10 tb Exp $ */ 1/* $OpenBSD: x509_asid.c,v 1.43 2024/02/20 14:58:16 tb Exp $ */
2/* 2/*
3 * Contributed to the OpenSSL Project by the American Registry for 3 * Contributed to the OpenSSL Project by the American Registry for
4 * Internet Numbers ("ARIN"). 4 * Internet Numbers ("ARIN").
@@ -558,6 +558,8 @@ extract_min_max(ASIdOrRange *aor, ASN1_INTEGER **min, ASN1_INTEGER **max)
558 *max = aor->u.range->max; 558 *max = aor->u.range->max;
559 return 1; 559 return 1;
560 } 560 }
561 *min = NULL;
562 *max = NULL;
561 563
562 return 0; 564 return 0;
563} 565}