diff options
| author | Roy Marples <roy@marples.name> | 2016-01-11 14:02:01 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2016-01-11 14:02:01 +0000 |
| commit | 1abca982ebc9c88fedeedecea29a87db5b71ba2c (patch) | |
| tree | 40c700f29c8baf10bb298ae07a520d306240e132 /dhcpcd.c | |
| parent | c1642d52cba06d80691d8dd97fb994e9f0ea8916 (diff) | |
| download | dhcpcd-1abca982ebc9c88fedeedecea29a87db5b71ba2c.tar.xz | |
Only stop the interface if it's active when the interface departs.
Fixes [97eb3351d3].
Diffstat (limited to 'dhcpcd.c')
| -rw-r--r-- | dhcpcd.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1020,11 +1020,12 @@ dhcpcd_handleinterface(void *arg, int action, const char *ifname) errno = ESRCH; return -1; } - if (ifp->active) + if (ifp->active) { logger(ctx, LOG_DEBUG, "%s: interface departed", ifp->name); - ifp->options->options |= DHCPCD_DEPARTED; - stop_interface(ifp); + ifp->options->options |= DHCPCD_DEPARTED; + stop_interface(ifp); + } TAILQ_REMOVE(ctx->ifaces, ifp, next); if_free(ifp); return 0; |
