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)
(cherry picked from commit
a36d10dfb7e77614c8d3da602ff3800a2e9f4989)
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)