summaryrefslogtreecommitdiffstats
path: root/bind.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-02-24 15:41:15 +0000
committerRoy Marples <roy@marples.name>2009-02-24 15:41:15 +0000
commit379a2b4ba6524bfd3a572bd66e3641ad67f95d8f (patch)
tree12305d5b128ba1a902542fe587f8662cb7f5b65a /bind.c
parentced943949dce5ce1434821484f0638d7edf8e731 (diff)
downloaddhcpcd-379a2b4ba6524bfd3a572bd66e3641ad67f95d8f.tar.xz
Close sockets better and just run the script when we're not touching the interface.
Diffstat (limited to 'bind.c')
-rw-r--r--bind.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bind.c b/bind.c
index f671a4ac..98873d76 100644
--- a/bind.c
+++ b/bind.c
@@ -121,6 +121,8 @@ bind_interface(void *arg)
struct dhcp_lease *lease = &state->lease;
struct timeval tv;
+ /* We're binding an address now - ensure that sockets are closed */
+ close_sockets(iface);
state->reason = NULL;
delete_timeout(handle_exit_timeout, NULL);
if (clock_monotonic)