Skip to content

Commit

Permalink
Add a test case for OSSL_HTTP_parse_url
Browse files Browse the repository at this point in the history
Ensure we test the case where the port value is empty in the URL.

Reviewed-by: Todd Short <todd.short@me.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from openssl#22961)
  • Loading branch information
mattcaswell authored and wbeck10p committed Jan 8, 2024
1 parent 5c3aaae commit 19eda4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/http_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,8 @@ static int test_http_url_invalid_prefix(void)

static int test_http_url_invalid_port(void)
{
return test_http_url_invalid("https://1.2.3.4:65536/pkix");
return test_http_url_invalid("https://1.2.3.4:65536/pkix")
&& test_http_url_invalid("https://1.2.3.4:");
}

static int test_http_url_invalid_path(void)
Expand Down

0 comments on commit 19eda4d

Please sign in to comment.