]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
capsicum: Fix an issue with the cherry pick of NET_RT_DUMP sysctl
authorRoy Marples <roy@marples.name>
Fri, 26 Aug 2022 10:36:55 +0000 (11:36 +0100)
committerRoy Marples <roy@marples.name>
Fri, 26 Aug 2022 10:36:55 +0000 (11:36 +0100)
src/privsep-bsd.c

index 39cb223c01e6f8d9d3d138b543a29fa85cffb9a9..1d5733f37c625c3ddcd23b4bdac396f3e7c8cf68 100644 (file)
@@ -394,7 +394,7 @@ ps_root_sysctl(struct dhcpcd_ctx *ctx,
                p += newlen;
        }
 
-       if (ps_sendcmd(ctx, ctx->ps_root->psp_fd, PS_SYSCTL,
+       if (ps_sendcmd(ctx, ctx->ps_root_fd, PS_SYSCTL,
            flags, buf, (size_t)(p - buf)) == -1)
                return -1;