summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2019-06-27 09:47:17 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2019-06-27 09:47:17 +0000
commit42095f2136872add3051c46efa677cacb83ab138 (patch)
tree57583b88c6b44ba1647181aa931f1dcc1d382a5c /sbin
parent9d4330402d0a3fe7b55c595cb469bc62893147de (diff)
free_dfr_proposal() does the LIST_REMOVE for us; do not run it twice
Diffstat (limited to 'sbin')
-rw-r--r--sbin/slaacd/engine.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/slaacd/engine.c b/sbin/slaacd/engine.c
index c6a0309a2cb..f18c53468bd 100644
--- a/sbin/slaacd/engine.c
+++ b/sbin/slaacd/engine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: engine.c,v 1.35 2019/06/07 11:46:33 florian Exp $ */
+/* $OpenBSD: engine.c,v 1.36 2019/06/27 09:47:16 florian Exp $ */
/*
* Copyright (c) 2017 Florian Obser <florian@openbsd.org>
@@ -1062,7 +1062,6 @@ remove_slaacd_iface(uint32_t if_index)
}
while(!LIST_EMPTY(&iface->dfr_proposals)) {
dfr_proposal = LIST_FIRST(&iface->dfr_proposals);
- LIST_REMOVE(dfr_proposal, entries);
free_dfr_proposal(dfr_proposal);
}
evtimer_del(&iface->timer);