X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Frouter.c;h=772d77017b4112859f6824dc55e8057bff142912;hb=2e486ef14235777e5c71a6e15044637025d0770c;hp=3ba552daffa6246154abdcfe5e91bdf0a94cf835;hpb=d21af09a10de15f340b5bbd05ddf0603dae0584e;p=project%2Fodhcpd.git diff --git a/src/router.c b/src/router.c index 3ba552d..772d770 100644 --- a/src/router.c +++ b/src/router.c @@ -88,6 +88,9 @@ int init_router(void) int setup_router_interface(struct interface *iface, bool enable) { + if (!fp_route || router_event.uloop.fd < 0) + return -1; + struct ipv6_mreq all_nodes = {ALL_IPV6_NODES, iface->ifindex}; struct ipv6_mreq all_routers = {ALL_IPV6_ROUTERS, iface->ifindex};