summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2024-07-11 13:38:04 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2024-07-11 13:38:04 +0000
commite26994640808921f4b8e03b5a8397382df27a356 (patch)
tree23eaec317144bee550a91345517b00b4b65000ae /sbin
parent8a972c4adc06079f8244b8b9e9aefea65a6428d9 (diff)
Make sure we are interested in an interface that shows up.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/dhcp6leased/frontend.c5
1 files changed, 4 insertions, 1 deletions
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 <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;