dhcp-transport: Do not leak fds during bind

When a lease is renewed, the transport bind operation is called.  This
can be done multiple times by dhcp_client, whenever a lease has been
obtained or renewed.  This can result in fds being leaked.

If bind operation has previously succeeded, simply return and reuse the
already created fd.
1 file changed