summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-08-17 10:51:26 +1000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-08-28 13:45:51 +1000
commit9cf2baa033bfc49dace2a20ba3df6f4cae7643e7 (patch)
tree912d395e0e120cf21cd8ede527af274ac3d26a97
parent54fe42bb10e15ca3ef289f4ad0126f424830cdd8 (diff)
downloadtalos-petitboot-9cf2baa033bfc49dace2a20ba3df6f4cae7643e7.zip
talos-petitboot-9cf2baa033bfc49dace2a20ba3df6f4cae7643e7.tar.gz
discover/network: Stop udhcpc6 process on requery
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
-rw-r--r--discover/network.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/discover/network.c b/discover/network.c
index 2057525..ed79002 100644
--- a/discover/network.c
+++ b/discover/network.c
@@ -563,6 +563,12 @@ void network_requery_device(struct network *network,
process_stop_async(interface->udhcpc_process);
process_release(interface->udhcpc_process);
}
+ if (interface->udhcpc6_process) {
+ interface->udhcpc6_process->exit_cb = NULL;
+ interface->udhcpc6_process->data = NULL;
+ process_stop_async(interface->udhcpc6_process);
+ process_release(interface->udhcpc6_process);
+ }
config = find_config_by_hwaddr(interface->hwaddr);
OpenPOWER on IntegriCloud