summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2020-09-18 14:50:34 +0000
committertb <>2020-09-18 14:50:34 +0000
commit73030173f921344c5dd3d134c6cb82d5ae621b6d (patch)
tree66ce27a8ba72f1ba03ca55e9aa18175cb6bd35fa /src
parent5eb3ccc15599f160b42b31239e5aee57aad3f390 (diff)
downloadopenbsd-73030173f921344c5dd3d134c6cb82d5ae621b6d.tar.gz
openbsd-73030173f921344c5dd3d134c6cb82d5ae621b6d.tar.bz2
openbsd-73030173f921344c5dd3d134c6cb82d5ae621b6d.zip
move variable declaration up to top to make this compile and pass
on sparc64
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/x509/constraints.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regress/lib/libcrypto/x509/constraints.c b/src/regress/lib/libcrypto/x509/constraints.c
index c94e22faf7..86ed8faf14 100644
--- a/src/regress/lib/libcrypto/x509/constraints.c
+++ b/src/regress/lib/libcrypto/x509/constraints.c
@@ -240,6 +240,7 @@ static int
240test_invalid_hostnames(void) 240test_invalid_hostnames(void)
241{ 241{
242 int i, failure = 0; 242 int i, failure = 0;
243 char *nulhost = "www.openbsd.org\0";
243 244
244 for (i = 0; invalid_hostnames[i] != NULL; i++) { 245 for (i = 0; invalid_hostnames[i] != NULL; i++) {
245 if (x509_constraints_valid_host(invalid_hostnames[i], 246 if (x509_constraints_valid_host(invalid_hostnames[i],
@@ -257,7 +258,6 @@ test_invalid_hostnames(void)
257 goto done; 258 goto done;
258 } 259 }
259 } 260 }
260 char *nulhost = "www.openbsd.org\0";
261 if (x509_constraints_valid_host(nulhost, 261 if (x509_constraints_valid_host(nulhost,
262 strlen(nulhost) + 1)) { 262 strlen(nulhost) + 1)) {
263 FAIL("hostname with NUL byte accepted\n"); 263 FAIL("hostname with NUL byte accepted\n");