diff options
| author | tb <> | 2020-09-18 14:50:34 +0000 |
|---|---|---|
| committer | tb <> | 2020-09-18 14:50:34 +0000 |
| commit | 280409082e121bf79a83a1567cf57c10f01acfc6 (patch) | |
| tree | 66ce27a8ba72f1ba03ca55e9aa18175cb6bd35fa /src | |
| parent | 8fc2ec9f3b890d255c071df8ab66b6fc83f14016 (diff) | |
| download | openbsd-280409082e121bf79a83a1567cf57c10f01acfc6.tar.gz openbsd-280409082e121bf79a83a1567cf57c10f01acfc6.tar.bz2 openbsd-280409082e121bf79a83a1567cf57c10f01acfc6.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.c | 2 |
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 | |||
| 240 | test_invalid_hostnames(void) | 240 | test_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"); |
