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.
  • Loading branch information
mattcaswell committed Dec 6, 2023
1 parent abaf99e commit 1fb8455
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 1fb8455

Please sign in to comment.