diff options
author | Matt Caswell <matt@openssl.org> | 2023-12-06 12:51:34 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2023-12-12 16:12:56 +0000 |
commit | 23acb0d8969089a57386e455db3143923fc6ff02 (patch) | |
tree | ec216218cc87772fcd9c13b7bf991c65b44dcda8 /test | |
parent | c579c999c7175b8b6a9ef7ac4bfe82d2d20907d9 (diff) |
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)
(cherry picked from commit a36d10dfb7e77614c8d3da602ff3800a2e9f4989)
Diffstat (limited to 'test')
-rw-r--r-- | test/http_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/http_test.c b/test/http_test.c index 49e770cd88..3f70f6223a 100644 --- a/test/http_test.c +++ b/test/http_test.c @@ -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) |