summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2023-05-12 19:02:10 +0000
committertb <>2023-05-12 19:02:10 +0000
commit3fd5ac06854f326bb86b34f253f0f0edf0281471 (patch)
tree362516499fd3b8d476499a852fe2db153e9e529b /src/lib
parent8afb34b4589570a17c03dfaf441f983410fc0663 (diff)
downloadopenbsd-3fd5ac06854f326bb86b34f253f0f0edf0281471.tar.gz
openbsd-3fd5ac06854f326bb86b34f253f0f0edf0281471.tar.bz2
openbsd-3fd5ac06854f326bb86b34f253f0f0edf0281471.zip
Bob points out that one error should be an X509V3error()
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/x509/x509_utl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_utl.c b/src/lib/libcrypto/x509/x509_utl.c
index 78edd67a44..14b43e8b6c 100644
--- a/src/lib/libcrypto/x509/x509_utl.c
+++ b/src/lib/libcrypto/x509/x509_utl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_utl.c,v 1.16 2023/05/12 18:39:44 tb Exp $ */ 1/* $OpenBSD: x509_utl.c,v 1.17 2023/05/12 19:02:10 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project. 3 * project.
4 */ 4 */
@@ -580,7 +580,7 @@ string_to_hex(const char *str, long *len)
580 if (!x509_get_xdigit_nibble_cbs(&cbs, &hi)) 580 if (!x509_get_xdigit_nibble_cbs(&cbs, &hi))
581 goto err; 581 goto err;
582 if (CBS_len(&cbs) == 0) { 582 if (CBS_len(&cbs) == 0) {
583 X509error(X509V3_R_ODD_NUMBER_OF_DIGITS); 583 X509V3error(X509V3_R_ODD_NUMBER_OF_DIGITS);
584 goto err; 584 goto err;
585 } 585 }
586 if (!x509_get_xdigit_nibble_cbs(&cbs, &lo)) 586 if (!x509_get_xdigit_nibble_cbs(&cbs, &lo))