summaryrefslogtreecommitdiff
path: root/sbin/dhcp6leased
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2024-07-11 10:37:48 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2024-07-11 10:37:48 +0000
commitb4c5c377b183b148cfaa2ca893a4bab38f13f762 (patch)
tree4c0092b99e953fd23183eb77dcc33ad8e319fb8e /sbin/dhcp6leased
parent30377754e0261101eb9b2b5d58f4ea103ce2e6a4 (diff)
Do not show expired lease information in dhcp6leasectl.
Diffstat (limited to 'sbin/dhcp6leased')
-rw-r--r--sbin/dhcp6leased/engine.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/dhcp6leased/engine.c b/sbin/dhcp6leased/engine.c
index c454e38844c..f58ae94929f 100644
--- a/sbin/dhcp6leased/engine.c
+++ b/sbin/dhcp6leased/engine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: engine.c,v 1.21 2024/07/11 09:39:13 florian Exp $ */
+/* $OpenBSD: engine.c,v 1.22 2024/07/11 10:37:47 florian Exp $ */
/*
* Copyright (c) 2017, 2021, 2024 Florian Obser <florian@openbsd.org>
@@ -1357,6 +1357,7 @@ deconfigure_interfaces(struct dhcp6leased_iface *iface)
send_reconfigure_interface(pd_conf, pd, DECONFIGURE);
}
}
+ memset(iface->pds, 0, sizeof(iface->pds));
}
int