From: Roy Marples Date: Tue, 11 Nov 2025 07:21:09 +0000 (+0000) Subject: privsep: we might not have a root process X-Git-Tag: v10.3.0~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8d32f001bdd69d6b8b6d5035c67dd9d3b36e5d5;p=thirdparty%2Fdhcpcd.git privsep: we might not have a root process --- 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