Make sure we are interested in an interface that shows up.
authorflorian <florian@openbsd.org>
Thu, 11 Jul 2024 13:38:03 +0000 (13:38 +0000)
committerflorian <florian@openbsd.org>
Thu, 11 Jul 2024 13:38:03 +0000 (13:38 +0000)
sbin/dhcp6leased/frontend.c

index 88552f5..06c343f 100644 (file)
@@ -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 <florian@openbsd.org>
@@ -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;