diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2018-11-16 19:45:41 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2018-11-16 19:45:41 +0000 |
commit | 584881d0a5f49cc6edac9c505d335dc5f6d13231 (patch) | |
tree | 296553a8c2084cdc12c23b4deb57dbecd959fb57 /usr.sbin | |
parent | 226fe8cf173076a7a370cdcb96ce360601e5263e (diff) |
Don't fatal if IPV6_LEAVE_GROUP fails.
The underlying interface might have been destroyed or detached and
rad(8) will just cope with that.
OK florian@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/rad/frontend.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/rad/frontend.c b/usr.sbin/rad/frontend.c index c452a845fd3..6b96623fb47 100644 --- a/usr.sbin/rad/frontend.c +++ b/usr.sbin/rad/frontend.c @@ -1,4 +1,4 @@ -/* $OpenBSD: frontend.c,v 1.16 2018/08/15 16:48:20 florian Exp $ */ +/* $OpenBSD: frontend.c,v 1.17 2018/11/16 19:45:40 reyk Exp $ */ /* * Copyright (c) 2018 Florian Obser <florian@openbsd.org> @@ -647,13 +647,13 @@ leave_all_routers_mcast_group(struct ra_iface *ra_iface) { log_debug("leaving multicast group on %s", ra_iface->name); all_routers.ipv6mr_interface = ra_iface->if_index; - if (setsockopt(icmp6sock, IPPROTO_IPV6, IPV6_LEAVE_GROUP, - &all_routers, sizeof(all_routers)) == -1) - fatal("IPV6_LEAVE_GROUP(%s)", ra_iface->name); + setsockopt(icmp6sock, IPPROTO_IPV6, IPV6_LEAVE_GROUP, + &all_routers, sizeof(all_routers)); } struct ra_iface* -find_ra_iface_by_id(uint32_t if_index) { +find_ra_iface_by_id(uint32_t if_index) +{ struct ra_iface *ra_iface; TAILQ_FOREACH(ra_iface, &ra_interfaces, entry) { |