diff options
| author | Roy Marples <roy@marples.name> | 2009-01-19 16:17:18 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2009-01-19 16:17:18 +0000 |
| commit | 882d97c856abe553fdc752457006ee85798adae1 (patch) | |
| tree | 9adcb67479b2a716d68758aa993c031c812b8fff /dhcpcd.c | |
| parent | a96641760ba48f58f11e58a12b43e4b3c8562159 (diff) | |
| download | dhcpcd-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |
