summaryrefslogtreecommitdiffstats
path: root/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-01-19 16:17:18 +0000
committerRoy Marples <roy@marples.name>2009-01-19 16:17:18 +0000
commit882d97c856abe553fdc752457006ee85798adae1 (patch)
tree9adcb67479b2a716d68758aa993c031c812b8fff /dhcpcd.c
parenta96641760ba48f58f11e58a12b43e4b3c8562159 (diff)
downloaddhcpcd-882d97c856abe553fdc752457006ee85798adae1.tar.xz
When dropping config, we should punt the old config so we don't drop it twice.
Diffstat (limited to 'dhcpcd.c')
-rw-r--r--dhcpcd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dhcpcd.c b/dhcpcd.c
index 4e120c64..daa76359 100644
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -189,6 +189,8 @@ drop_config(struct interface *iface, const char *reason)
iface->state->new = NULL;
iface->state->reason = reason;
configure(iface);
+ free(iface->state->old);
+ iface->state->old = NULL;
iface->state->lease.addr.s_addr = 0;
}