Add unit test for parsing addresses with bad ports.

svn:r1389
This commit is contained in:
Nick Mathewson 2009-07-30 17:00:46 +00:00
parent 3c99c79df9
commit 625116295a

View File

@ -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 },