From c8d32f001bdd69d6b8b6d5035c67dd9d3b36e5d5 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 11 Nov 2025 07:21:09 +0000 Subject: [PATCH] privsep: we might not have a root process --- src/dhcpcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dhcpcd.c b/src/dhcpcd.c index 474debdd..0bf0dfa4 100644 --- a/src/dhcpcd.c +++ b/src/dhcpcd.c @@ -2719,7 +2719,7 @@ exit1: if (ctx.options & DHCPCD_STARTED && !(ctx.options & DHCPCD_FORKED)) loginfox(PACKAGE " exited"); #ifdef PRIVSEP - if (ps_root_stop(&ctx) == -1) + if (ctx.ps_root != NULL && ps_root_stop(&ctx) == -1) i = EXIT_FAILURE; eloop_free(ctx.ps_eloop); #endif -- 2.47.3