diff options
| author | Roy Marples <roy@marples.name> | 2019-11-03 10:13:54 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2019-11-03 10:13:54 +0000 |
| commit | 9ffb2a62630662bf060769896230f38ad7a98390 (patch) | |
| tree | ce6b36053033ec7ac182a6ef30913df18bb2b3d8 /src/dhcpcd.c | |
| parent | c1d87c35a9a10e1d66445e9719ae24a594364d88 (diff) | |
| download | dhcpcd-9ffb2a62630662bf060769896230f38ad7a98390.tar.xz | |
dhcpcd: Set ctx.ifaces to NULL after freeing
Because they it might be used trying to find an interface to assign
our option routes to when freed if never used.
Diffstat (limited to 'src/dhcpcd.c')
| -rw-r--r-- | src/dhcpcd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dhcpcd.c b/src/dhcpcd.c index 1509adb0..2b04bb3e 100644 --- a/src/dhcpcd.c +++ b/src/dhcpcd.c @@ -2133,6 +2133,7 @@ exit1: if_free(ifp); } free(ctx.ifaces); + ctx.ifaces = NULL; } free_options(&ctx, ifo); #ifdef HAVE_OPEN_MEMSTREAM |
