artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5556c6a
)
x509_asid: NULL out min/max on extract_min_max() failure
author
tb
<tb@openbsd.org>
Tue, 20 Feb 2024 14:58:16 +0000
(14:58 +0000)
committer
tb
<tb@openbsd.org>
Tue, 20 Feb 2024 14:58:16 +0000
(14:58 +0000)
requested by/ok jsing
lib/libcrypto/x509/x509_asid.c
patch
|
blob
|
history
diff --git
a/lib/libcrypto/x509/x509_asid.c
b/lib/libcrypto/x509/x509_asid.c
index
c9d3c8d
..
2fda58c
100644
(file)
--- a/
lib/libcrypto/x509/x509_asid.c
+++ b/
lib/libcrypto/x509/x509_asid.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: x509_asid.c,v 1.4
2 2024/02/19 15:44:10
tb Exp $ */
+/* $OpenBSD: x509_asid.c,v 1.4
3 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;
}