]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
When dropping config, we should punt the old config so we don't drop it twice.
authorRoy Marples <roy@marples.name>
Mon, 19 Jan 2009 16:17:18 +0000 (16:17 +0000)
committerRoy Marples <roy@marples.name>
Mon, 19 Jan 2009 16:17:18 +0000 (16:17 +0000)
config.h
dhcpcd.c

index 53a4d9a66092692e92123c2d8055ff9a1396a1cb..4a3b5f42b6966d16ba2b376a1663bfe64ed12e6f 100644 (file)
--- 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 */
index 4e120c64797a9dd21e62deff0d0eef3a4efa2a62..daa7635996bb2f3f4e6518958f350a2bac25797a 100644 (file)
--- 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;
 }