summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2026-03-11 14:20:55 +0000
committerDaniil Baturin <daniil@baturin.org>2026-03-11 14:20:55 +0000
commit563fc7def9903c804aca526d0f5f471d76f36fd9 (patch)
tree28512a6afe1767769b9795e964bf709f8a9a1c7b /tests
parent96b9fdcc276a058dea9dedc602a596d27a1fb982 (diff)
downloadipaddrcheck-563fc7def9903c804aca526d0f5f471d76f36fd9.tar.gz
ipaddrcheck-563fc7def9903c804aca526d0f5f471d76f36fd9.zip
T8374: convert addresses to the host byte order before comparison
when checking that the lower boundary of an IPv4 range is actually lower than the upper bound
Diffstat (limited to 'tests')
-rw-r--r--tests/check_ipaddrcheck.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/check_ipaddrcheck.c b/tests/check_ipaddrcheck.c
index c4be8b1..fe3876c 100644
--- a/tests/check_ipaddrcheck.c
+++ b/tests/check_ipaddrcheck.c
@@ -408,6 +408,7 @@ START_TEST (test_is_ipv4_range)
ck_assert_int_eq(is_ipv4_range("192.0.2.0-192.0.2.10", 0, 1), RESULT_SUCCESS);
ck_assert_int_eq(is_ipv4_range("192.0.2.-", 0, 1), RESULT_FAILURE);
ck_assert_int_eq(is_ipv4_range("192.0.2.99-192.0.2.11", 0, 1), RESULT_FAILURE);
+ ck_assert_int_eq(is_ipv4_range("192.0.2.0-1.8.2.1", 0, 1), RESULT_FAILURE);
}
END_TEST