diff options
Diffstat (limited to 'src/libsystemd-network/test-dhcp-client.c')
-rw-r--r-- | src/libsystemd-network/test-dhcp-client.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libsystemd-network/test-dhcp-client.c b/src/libsystemd-network/test-dhcp-client.c index ca44cfbdc5..0f7adac562 100644 --- a/src/libsystemd-network/test-dhcp-client.c +++ b/src/libsystemd-network/test-dhcp-client.c @@ -253,8 +253,7 @@ static void test_discover_message(sd_event *e) sd_dhcp_client_stop(client); sd_dhcp_client_free(client); - close(test_fd[0]); - close(test_fd[1]); + test_fd[1] = safe_close(test_fd[1]); callback_recv = NULL; } @@ -482,8 +481,7 @@ static void test_addr_acq(sd_event *e) sd_dhcp_client_stop(client); sd_dhcp_client_free(client); - close(test_fd[0]); - close(test_fd[1]); + test_fd[1] = safe_close(test_fd[1]); callback_recv = NULL; xid = 0; |