From: florian Date: Tue, 27 Jul 2021 08:15:11 +0000 (+0000) Subject: The SIOCAIFADDR_IN6 ioctl could lose a race against another process X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=eaca7584feb949b8f804aa8b9202961dc8b56456;p=openbsd The SIOCAIFADDR_IN6 ioctl could lose a race against another process configuring the same IP. I forgot to fix slaacd after fixing the same problem in dhcpleased. Pointed out by afresh1 --- diff --git a/sbin/slaacd/slaacd.c b/sbin/slaacd/slaacd.c index c01300fbc24..0b31934c211 100644 --- a/sbin/slaacd/slaacd.c +++ b/sbin/slaacd/slaacd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: slaacd.c,v 1.62 2021/07/22 15:32:51 kn Exp $ */ +/* $OpenBSD: slaacd.c,v 1.63 2021/07/27 08:15:11 florian Exp $ */ /* * Copyright (c) 2017 Florian Obser @@ -660,7 +660,7 @@ configure_interface(struct imsg_configure_address *address) log_debug("%s: %s", __func__, if_name); if (ioctl(ioctl_sock, SIOCAIFADDR_IN6, &in6_addreq) == -1) - fatal("SIOCAIFADDR_IN6"); + log_warn("SIOCAIFADDR_IN6"); if (address->mtu) { struct ifreq ifr;