From: Nick Mathewson Date: Thu, 30 Jul 2009 17:00:46 +0000 (+0000) Subject: Add unit test for parsing addresses with bad ports. X-Git-Tag: release-2.0.3-alpha~149 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=625116295a25e438114f137323d0b5db1c748b4c;p=libevent Add unit test for parsing addresses with bad ports. svn:r1389 --- diff --git a/test/regress_util.c b/test/regress_util.c index b602e316..999326fb 100644 --- a/test/regress_util.c +++ b/test/regress_util.c @@ -206,6 +206,9 @@ static struct sa_port_ent { { "[ffff::1]:1000", AF_INET6, "ffff::1", 1000 }, { "[ffff::1]", AF_INET6, "ffff::1", 0 }, { "[ffff::1", 0, NULL, 0 }, + { "[ffff::1]:65599", 0, NULL, 0 }, + { "[ffff::1]:0", 0, NULL, 0 }, + { "[ffff::1]:-1", 0, NULL, 0 }, { "::1", AF_INET6, "::1", 0 }, { "1:2::1", AF_INET6, "1:2::1", 0 }, { "192.168.0.1:50", AF_INET, "192.168.0.1", 50 },