changeset 5385:0397759ce185 draft

privsep: init more fd -1
author Roy Marples <roy@marples.name>
date Mon, 22 Jun 2020 17:31:58 +0100
parents 6d1812f4a3ac
children b28b0962bfe2
files src/dhcpcd.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/dhcpcd.c	Mon Jun 22 13:22:16 2020 +0100
+++ b/src/dhcpcd.c	Mon Jun 22 17:31:58 2020 +0100
@@ -1858,9 +1858,7 @@
 #endif
 #ifdef PRIVSEP
 	ctx.ps_root_fd = ctx.ps_data_fd = -1;
-#ifdef PRIVSEP_COMTROLLER
-	ctx.ps_ctl_fd = -1;
-#endif
+	ctx.ps_inet_fd = ctx.ps_control_fd = -1;
 	TAILQ_INIT(&ctx.ps_processes);
 #endif
 	rt_init(&ctx);