chiark / gitweb /
sd-dhcp-client: clean up raw socket sd_event_source when creating new UDP socket
authorDan Williams <dcbw@redhat.com>
Thu, 30 Oct 2014 19:23:00 +0000 (14:23 -0500)
committerTom Gundersen <teg@jklm.no>
Fri, 31 Oct 2014 08:26:27 +0000 (09:26 +0100)
commitaffaa94fc38a980a70534f70f6a6c58a4129b062
tree88d496c844ecf308f14e7c2bd9dc9cdfeff35a6d
parent7cabba07745b388497e8c0fc19b61984167fd474
sd-dhcp-client: clean up raw socket sd_event_source when creating new UDP socket

The raw socket sd_event_source used for DHCP server solicitations
was simply dropped on the floor when creating the new UDP socket
after a lease has been acquired.  Clean it up properly so we're
not still listening and responding to events on it.
src/libsystemd-network/sd-dhcp-client.c