summaryrefslogtreecommitdiffhomepage
path: root/src/config.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-10-15 12:19:48 +0200
committerSteven Barth <steven@midlink.org>2013-10-15 12:19:48 +0200
commit8cc7121600eab0e28495e48f559d4886ba879c95 (patch)
tree3e5078e735f47da77eebac513e7c28dd0811ca27 /src/config.c
parent7117854698ba7c77da5823fc673f44e6db0fee5f (diff)
Fix more memory corruption
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.c b/src/config.c
index e455965..4aaded9 100644
--- a/src/config.c
+++ b/src/config.c
@@ -532,7 +532,7 @@ void odhcpd_run(void)
#endif
// Evaluate hybrid mode for master
- struct interface *master = NULL, *i;
+ struct interface *master = NULL, *i, *n;
list_for_each_entry(i, &interfaces, head) {
if (!i->master)
continue;
@@ -557,7 +557,7 @@ void odhcpd_run(void)
}
- list_for_each_entry(i, &interfaces, head) {
+ list_for_each_entry_safe(i, n, &interfaces, head) {
if (i->inuse && !i->ignore) {
// Resolve hybrid mode
if (i->dhcpv6 == RELAYD_HYBRID)