diff options
author | Tom Gundersen <teg@jklm.no> | 2014-08-31 19:22:33 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-08-31 19:22:33 +0200 |
commit | 5bb14c8651b017983bb9cbd1444969c7a1bda14e (patch) | |
tree | fa34e00627104d4cd09a0d69eafe3cb6ccbb4df0 /src/network/test-network.c | |
parent | 04d180c8a8641c209eb19d1210b5d4e36f0ae05b (diff) |
test-network: fix off-by-one error in test
Diffstat (limited to 'src/network/test-network.c')
-rw-r--r-- | src/network/test-network.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/test-network.c b/src/network/test-network.c index 3dc051dd92..ea9f938649 100644 --- a/src/network/test-network.c +++ b/src/network/test-network.c @@ -96,9 +96,9 @@ static void test_deserialize_dhcp_routes(void) { assert_se(routes[0].gw_addr.s_addr == inet_addr("192.168.0.1")); assert_se(routes[0].dst_prefixlen == 16); - assert_se(routes[2].dst_addr.s_addr == inet_addr("0.0.0.0")); - assert_se(routes[2].gw_addr.s_addr == inet_addr("10.0.1.1")); - assert_se(routes[2].dst_prefixlen == 0); + assert_se(routes[1].dst_addr.s_addr == inet_addr("0.0.0.0")); + assert_se(routes[1].gw_addr.s_addr == inet_addr("10.0.1.1")); + assert_se(routes[1].dst_prefixlen == 0); } { |