summaryrefslogtreecommitdiff
path: root/src/network/test-network.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-02-02 21:32:28 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-02-02 21:34:35 -0500
commit6cb8e687f038424ef54b5c5c3c433be974fbe371 (patch)
treeb905dd98bb19544edd2e2e3085a3820e4e33d29c /src/network/test-network.c
parentc1d630d5fd3c0b3307811d51f9840652e066a0f2 (diff)
network-address,test-network: avoid undefined behaviour
Diffstat (limited to 'src/network/test-network.c')
-rw-r--r--src/network/test-network.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/network/test-network.c b/src/network/test-network.c
index ea9f938649..b4a7be00f5 100644
--- a/src/network/test-network.c
+++ b/src/network/test-network.c
@@ -158,10 +158,9 @@ static void test_address_equality(void) {
assert_se(address_equal(a1, a2));
assert_se(inet_pton(AF_INET, "192.168.3.9", &a1->in_addr.in));
- assert_se(!address_equal(a1, a2));
+ assert_se(address_equal(a1, a2));
assert_se(inet_pton(AF_INET, "192.168.3.9", &a2->in_addr.in));
assert_se(address_equal(a1, a2));
-
a1->prefixlen = 10;
assert_se(!address_equal(a1, a2));
a2->prefixlen = 10;