From: florian Date: Thu, 11 Jul 2024 13:38:03 +0000 (+0000) Subject: Make sure we are interested in an interface that shows up. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7520e8fab0993b4a897a2774a7038459b8b069e4;p=openbsd Make sure we are interested in an interface that shows up. --- diff --git a/sbin/dhcp6leased/frontend.c b/sbin/dhcp6leased/frontend.c index 88552f53a22..06c343fc648 100644 --- a/sbin/dhcp6leased/frontend.c +++ b/sbin/dhcp6leased/frontend.c @@ -1,4 +1,4 @@ -/* $OpenBSD: frontend.c,v 1.13 2024/07/11 10:48:51 florian Exp $ */ +/* $OpenBSD: frontend.c,v 1.14 2024/07/11 13:38:03 florian Exp $ */ /* * Copyright (c) 2017, 2021, 2024 Florian Obser @@ -551,6 +551,9 @@ update_iface(uint32_t if_index) if ((flags = get_flags(if_name)) == -1) return; + if (find_iface_conf(&frontend_conf->iface_list, if_name) == NULL) + return; + memset(&ifinfo, 0, sizeof(ifinfo)); ifinfo.if_index = if_index; ifinfo.link_state = -1;