diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/regress/lib/libcrypto/x509/constraints.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/x509/constraints.c b/src/regress/lib/libcrypto/x509/constraints.c index c4dedeb1fa..b552f30989 100644 --- a/src/regress/lib/libcrypto/x509/constraints.c +++ b/src/regress/lib/libcrypto/x509/constraints.c | |||
| @@ -331,9 +331,11 @@ test_invalid_domain_constraints(void) | |||
| 331 | } | 331 | } |
| 332 | 332 | ||
| 333 | static int | 333 | static int |
| 334 | test_invalid_uri(void) { | 334 | test_invalid_uri(void) |
| 335 | { | ||
| 335 | int j, failure=0; | 336 | int j, failure=0; |
| 336 | char *hostpart; | 337 | char *hostpart = NULL; |
| 338 | |||
| 337 | for (j = 0; invaliduri[j] != NULL; j++) { | 339 | for (j = 0; invaliduri[j] != NULL; j++) { |
| 338 | if (x509_constraints_uri_host(invaliduri[j], | 340 | if (x509_constraints_uri_host(invaliduri[j], |
| 339 | strlen(invaliduri[j]), &hostpart) != 0) { | 341 | strlen(invaliduri[j]), &hostpart) != 0) { |
| @@ -342,7 +344,10 @@ test_invalid_uri(void) { | |||
| 342 | failure = 1; | 344 | failure = 1; |
| 343 | goto done; | 345 | goto done; |
| 344 | } | 346 | } |
| 347 | free(hostpart); | ||
| 348 | hostpart = NULL; | ||
| 345 | } | 349 | } |
| 350 | |||
| 346 | done: | 351 | done: |
| 347 | return failure; | 352 | return failure; |
| 348 | } | 353 | } |
