aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2011-03-22 10:45:07 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2011-03-22 10:45:07 +0100
commit79b74bdf64e55f407b448fda267589f793ddc19e (patch)
treecd4b2686d6294374c9b889aa8a860cfb7ea1e647 /tests
parent633d6532beb8cb8bd4f44732177499d4023fe624 (diff)
downloadlibssh-79b74bdf64e55f407b448fda267589f793ddc19e.tar.gz
libssh-79b74bdf64e55f407b448fda267589f793ddc19e.tar.xz
libssh-79b74bdf64e55f407b448fda267589f793ddc19e.zip
Added a IP address test
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/torture_isipaddr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unittests/torture_isipaddr.c b/tests/unittests/torture_isipaddr.c
index eacc06ef..c2a1e079 100644
--- a/tests/unittests/torture_isipaddr.c
+++ b/tests/unittests/torture_isipaddr.c
@@ -35,6 +35,7 @@ static void torture_ssh_is_ipaddr(void **state) {
assert_int_equal(ssh_is_ipaddr("0.0.0."),0);
assert_int_equal(ssh_is_ipaddr("0.0"),0);
assert_int_equal(ssh_is_ipaddr("0"),0);
+ assert_int_equal(ssh_is_ipaddr("255.255.255"),0);
assert_int_equal(ssh_is_ipaddr("2001:0db8:85a3:0000:0000:8a2e:0370:7334:1002"), 0);
assert_int_equal(ssh_is_ipaddr("fe80:x:202:b3ff:fe1e:8329"), 0);