[systemd-devel] [PATCH 04/11] libsystemd-dhcp: Unref event source before closing socket
Patrik Flykt
patrik.flykt at linux.intel.com
Fri Dec 20 07:16:13 PST 2013
---
src/libsystemd-dhcp/dhcp-client.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libsystemd-dhcp/dhcp-client.c b/src/libsystemd-dhcp/dhcp-client.c
index 043d574..18a6e3c 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;
--
1.7.10.4
More information about the systemd-devel
mailing list