diff options
| author | jsing <> | 2026-05-26 09:35:53 +0000 |
|---|---|---|
| committer | jsing <> | 2026-05-26 09:35:53 +0000 |
| commit | a68c0e6919561a0553fcc943995ffc6889f02451 (patch) | |
| tree | 474f70c58f4646ddbab591dd9d80b52ff6408a5a | |
| parent | 168a50f5ac6e98a8890e905e1d4dd66bbca0a857 (diff) | |
| download | openbsd-a68c0e6919561a0553fcc943995ffc6889f02451.tar.gz openbsd-a68c0e6919561a0553fcc943995ffc6889f02451.tar.bz2 openbsd-a68c0e6919561a0553fcc943995ffc6889f02451.zip | |
Fix test_valid_uri() by passing the correct entry to strlen().
| -rw-r--r-- | src/regress/lib/libcrypto/x509/constraints.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ | |||
| 1 | /* $OpenBSD: constraints.c,v 1.19 2026/04/13 17:04:23 beck Exp $ */ | 1 | /* $OpenBSD: constraints.c,v 1.20 2026/05/26 09:35:53 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2020 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2020 Bob Beck <beck@openbsd.org> |
| 4 | * | 4 | * |
| @@ -397,7 +397,7 @@ test_valid_uri(void) | |||
| 397 | 397 | ||
| 398 | for (j = 0; validuri[j] != NULL; j++) { | 398 | for (j = 0; validuri[j] != NULL; j++) { |
| 399 | if (x509_constraints_uri_host(validuri[j], | 399 | if (x509_constraints_uri_host(validuri[j], |
| 400 | strlen(invaliduri[j]), &hostpart) == 0) { | 400 | strlen(validuri[j]), &hostpart) == 0) { |
| 401 | FAIL("Valid URI '%s' NOT accepted\n", | 401 | FAIL("Valid URI '%s' NOT accepted\n", |
| 402 | validuri[j]); | 402 | validuri[j]); |
| 403 | failure = 1; | 403 | failure = 1; |
