]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile issue with prior
authorRoy Marples <roy@marples.name>
Sun, 5 Dec 2021 11:04:16 +0000 (11:04 +0000)
committerRoy Marples <roy@marples.name>
Sun, 5 Dec 2021 11:04:16 +0000 (11:04 +0000)
src/privsep.c

index 82394e0fbf0df10bd25d78d642113b92aedc937f..1a9969cfc9b826380cb8b8e3e1445fc36fd96996 100644 (file)
@@ -160,7 +160,7 @@ ps_dropprivs(struct dhcpcd_ctx *ctx)
 #if defined(__NetBSD__) || defined(__DragonFly__) || \
     defined(HAVE_KQUEUE) || defined(HAVE_EPOLL)
        /* The control proxy *does* need to create new fd's via accept(2). */
-       if (ctx->ps_ctl == NULL || ctx->ps_ctl->psp_pid != getpid()) {
+       if (ctx->ps_control_pid != getpid()) {
                if (setrlimit(RLIMIT_NOFILE, &rzero) == -1)
                        logerr("setrlimit RLIMIT_NOFILE");
        }