diff options
| author | Roy Marples <roy@marples.name> | 2020-05-19 16:13:06 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-05-19 16:13:06 +0000 |
| commit | 49d023cc5990a930a3f6a4639528768fdc400ac3 (patch) | |
| tree | 0ff39d2858e1fbffbe241627d89c98975c63bdc3 /src/privsep-bpf.c | |
| parent | 00185f719ddc13a4fdb39af51ae0d61d50fa548f (diff) | |
| download | dhcpcd-49d023cc5990a930a3f6a4639528768fdc400ac3.tar.xz | |
privsep: No need for ipv4state
Diffstat (limited to 'src/privsep-bpf.c')
| -rw-r--r-- | src/privsep-bpf.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/privsep-bpf.c b/src/privsep-bpf.c index 5b52ddb9..43fee54b 100644 --- a/src/privsep-bpf.c +++ b/src/privsep-bpf.c @@ -171,7 +171,6 @@ ps_bpf_cmd(struct dhcpcd_ctx *ctx, struct ps_msghdr *psm, struct msghdr *msg) pid_t start; struct iovec *iov = msg->msg_iov; struct interface *ifp; - struct ipv4_state *istate; cmd = (uint16_t)(psm->ps_cmd & ~(PS_START | PS_STOP)); psp = ps_findprocess(ctx, &psm->ps_id); @@ -212,11 +211,6 @@ ps_bpf_cmd(struct dhcpcd_ctx *ctx, struct ps_msghdr *psm, struct msghdr *msg) ifp->options = NULL; memset(ifp->if_data, 0, sizeof(ifp->if_data)); - if ((istate = ipv4_getstate(ifp)) == NULL) { - ps_freeprocess(psp); - return -1; - } - memcpy(psp->psp_ifname, ifp->name, sizeof(psp->psp_ifname)); switch (cmd) { |
