]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
privsep: init more fd -1
authorRoy Marples <roy@marples.name>
Mon, 22 Jun 2020 16:31:58 +0000 (17:31 +0100)
committerRoy Marples <roy@marples.name>
Mon, 22 Jun 2020 16:31:58 +0000 (17:31 +0100)
src/dhcpcd.c

index cc9ebcbeddbd3b9ed067d94f4ca1c8b018bd3d51..a7324a573ed30b5c3a4c03233d8b49649934cbdb 100644 (file)
@@ -1858,9 +1858,7 @@ main(int argc, char **argv)
 #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);