diff options
| author | Roy Marples <roy@marples.name> | 2014-11-18 12:06:08 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2014-11-18 12:06:08 +0000 |
| commit | 4d91c2e720f229921793f7f04c29e31977b22896 (patch) | |
| tree | 571970e212ac90c6c3dab02f8b6c315312dbbf05 /dhcpcd.c | |
| parent | 0b626d5c0eb7c1ea0dd77abd9af6e2cd51b63b10 (diff) | |
| download | dhcpcd-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) { |
