From a68c0e6919561a0553fcc943995ffc6889f02451 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Tue, 26 May 2026 09:35:53 +0000 Subject: Fix test_valid_uri() by passing the correct entry to strlen(). --- src/regress/lib/libcrypto/x509/constraints.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/regress/lib/libcrypto/x509/constraints.c b/src/regress/lib/libcrypto/x509/constraints.c index 54bb654a31..b6c4e79c16 100644 --- a/src/regress/lib/libcrypto/x509/constraints.c +++ b/src/regress/lib/libcrypto/x509/constraints.c @@ -1,4 +1,4 @@ -/* $OpenBSD: constraints.c,v 1.19 2026/04/13 17:04:23 beck Exp $ */ +/* $OpenBSD: constraints.c,v 1.20 2026/05/26 09:35:53 jsing Exp $ */ /* * Copyright (c) 2020 Bob Beck * @@ -397,7 +397,7 @@ test_valid_uri(void) for (j = 0; validuri[j] != NULL; j++) { if (x509_constraints_uri_host(validuri[j], - strlen(invaliduri[j]), &hostpart) == 0) { + strlen(validuri[j]), &hostpart) == 0) { FAIL("Valid URI '%s' NOT accepted\n", validuri[j]); failure = 1; -- cgit v1.2.3-55-g6feb