From 85051b06c1f04b206c00bb7f674a9a29bfb19594 Mon Sep 17 00:00:00 2001 From: Pavel Grunt Date: Wed, 1 Jun 2016 10:04:46 +0200 Subject: spice-uri: Do not allow empty port string Related: rhbz#1335239 Acked-by: Victor Toso --- tests/uri.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/uri.c b/tests/uri.c index d57f072..ee3d061 100644 --- a/tests/uri.c +++ b/tests/uri.c @@ -75,6 +75,7 @@ static void test_spice_uri_ipv4_bad(void) {"http://", "http", NULL, 3128, NULL, NULL, "Invalid hostname in uri address"}, {"http://127.0.0.1:port", "http", "127.0.0.1", 3128, NULL, NULL, "Invalid uri port: port"}, + {"http://127.0.0.1:", "http", "127.0.0.1", 3128, NULL, NULL, "Missing uri port"}, }; test_spice_uri_bad(invalid_test_cases, G_N_ELEMENTS(invalid_test_cases)); -- cgit v1.2.3