From: Roy Marples Date: Mon, 19 Jan 2009 16:17:18 +0000 (+0000) Subject: When dropping config, we should punt the old config so we don't drop it twice. X-Git-Tag: v5.0.0~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=882d97c856abe553fdc752457006ee85798adae1;p=thirdparty%2Fdhcpcd.git When dropping config, we should punt the old config so we don't drop it twice. --- diff --git a/config.h b/config.h index 53a4d9a6..4a3b5f42 100644 --- a/config.h +++ b/config.h @@ -28,7 +28,7 @@ #define CONFIG_H #define PACKAGE "dhcpcd" -#define VERSION "4.99.8" +#define VERSION "4.99.9" /* Some systems do not have a working fork. */ /* #define THERE_IS_NO_FORK */ 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; }