test: dhcp-server - fix test
authorTom Gundersen <teg@jklm.no>
Wed, 13 Aug 2014 23:28:35 +0000 (01:28 +0200)
committerTom Gundersen <teg@jklm.no>
Wed, 13 Aug 2014 23:29:51 +0000 (01:29 +0200)
Reported by Corey Hammerton on G+

src/libsystemd-network/test-dhcp-server.c

index a94b62f..3e68f31 100644 (file)
@@ -57,7 +57,7 @@ static int test_basic(sd_event *event) {
 
         assert_se(sd_dhcp_server_start(server) == -EUNATCH);
         assert_se(sd_dhcp_server_set_address(server, &address_any, 28) == -EINVAL);
-        assert_se(sd_dhcp_server_set_address(server, &address_any, 38) == -ERANGE);
+        assert_se(sd_dhcp_server_set_address(server, &address_lo, 38) == -ERANGE);
         assert_se(sd_dhcp_server_set_address(server, &address_lo, 8) >= 0);
         assert_se(sd_dhcp_server_set_address(server, &address_lo, 8) == -EBUSY);