summaryrefslogtreecommitdiffstats
path: root/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2014-11-18 12:06:08 +0000
committerRoy Marples <roy@marples.name>2014-11-18 12:06:08 +0000
commit4d91c2e720f229921793f7f04c29e31977b22896 (patch)
tree571970e212ac90c6c3dab02f8b6c315312dbbf05 /dhcpcd.c
parent0b626d5c0eb7c1ea0dd77abd9af6e2cd51b63b10 (diff)
downloaddhcpcd-4d91c2e720f229921793f7f04c29e31977b22896.tar.xz
If allowinterfaces is not specified, allow all configured interfaces
to work, such as loopback and ppp.
Diffstat (limited to 'dhcpcd.c')
-rw-r--r--dhcpcd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/dhcpcd.c b/dhcpcd.c
index e7262b62..42a5e49a 100644
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -149,6 +149,12 @@ free_globals(struct dhcpcd_ctx *ctx)
free(ctx->ifdv);
ctx->ifdv = NULL;
}
+ if (ctx->ifcc) {
+ for (; ctx->ifcc > 0; ctx->ifcc--)
+ free(ctx->ifcv[ctx->ifcc - 1]);
+ free(ctx->ifcv);
+ ctx->ifcv = NULL;
+ }
#ifdef INET
if (ctx->dhcp_opts) {