summaryrefslogtreecommitdiffstats
path: root/src/ipv6.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-05-20 21:36:00 +0100
committerRoy Marples <roy@marples.name>2020-05-20 21:36:00 +0100
commit0b96af5978a73029b0b645712c102603bbdb38bb (patch)
tree4d6fd62f43adb07af08a907b0f625cac585110f3 /src/ipv6.c
parent57b2db8ffc9e88d303e2c140e07be79aa45a35ce (diff)
downloaddhcpcd-0b96af5978a73029b0b645712c102603bbdb38bb.tar.xz
Remove some old FORKED logic.
No longer needed now the main process forks from the get go.
Diffstat (limited to 'src/ipv6.c')
-rw-r--r--src/ipv6.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/ipv6.c b/src/ipv6.c
index 025174bc..c1e23588 100644
--- a/src/ipv6.c
+++ b/src/ipv6.c
@@ -1238,11 +1238,8 @@ ipv6_handleifa(struct dhcpcd_ctx *ctx,
}
#endif
- if (ia->dadcallback) {
+ if (ia->dadcallback)
ia->dadcallback(ia);
- if (ctx->options & DHCPCD_FORKED)
- goto out;
- }
if (IN6_IS_ADDR_LINKLOCAL(&ia->addr) &&
!(ia->addr_flags & IN6_IFF_NOTUSEABLE))
@@ -1257,8 +1254,6 @@ ipv6_handleifa(struct dhcpcd_ctx *ctx,
cb, next);
cb->callback(cb->arg);
free(cb);
- if (ctx->options & DHCPCD_FORKED)
- goto out;
}
}
}
@@ -1274,7 +1269,6 @@ ipv6_handleifa(struct dhcpcd_ctx *ctx,
dhcp6_handleifa(cmd, ia, pid);
#endif
-out:
/* Done with the ia now, so free it. */
if (cmd == RTM_DELADDR)
ipv6_freeaddr(ia);