Skip to content

Commit c8d32f0

Browse files
committed
privsep: we might not have a root process
1 parent 9912225 commit c8d32f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dhcpcd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2719,7 +2719,7 @@ main(int argc, char **argv, char **envp)
27192719
if (ctx.options & DHCPCD_STARTED && !(ctx.options & DHCPCD_FORKED))
27202720
loginfox(PACKAGE " exited");
27212721
#ifdef PRIVSEP
2722-
if (ps_root_stop(&ctx) == -1)
2722+
if (ctx.ps_root != NULL && ps_root_stop(&ctx) == -1)
27232723
i = EXIT_FAILURE;
27242724
eloop_free(ctx.ps_eloop);
27252725
#endif

0 commit comments

Comments
 (0)