mirror of
https://github.com/openssl/openssl.git
synced 2025-03-31 20:10:45 +08:00
Add a test case for OSSL_HTTP_parse_url
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 https://github.com/openssl/openssl/pull/22961)
This commit is contained in:
parent
322517d817
commit
a36d10dfb7
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user