summaryrefslogtreecommitdiff
path: root/src/libsystemd-dhcp/dhcp-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsystemd-dhcp/dhcp-client.c')
-rw-r--r--src/libsystemd-dhcp/dhcp-client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-dhcp/dhcp-client.c b/src/libsystemd-dhcp/dhcp-client.c
index 043d574c10..18a6e3c50d 100644
--- a/src/libsystemd-dhcp/dhcp-client.c
+++ b/src/libsystemd-dhcp/dhcp-client.c
@@ -892,10 +892,10 @@ static int client_receive_raw_message(sd_event_source *s, int fd,
client_notify(client, DHCP_EVENT_IP_ACQUIRE);
- close(client->fd);
- client->fd = -1;
client->receive_message =
sd_event_source_unref(client->receive_message);
+ close(client->fd);
+ client->fd = -1;
}
r = 0;