summaryrefslogtreecommitdiffhomepage
path: root/src/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c
index d857f24..3a97e65 100644
--- a/src/config.c
+++ b/src/config.c
@@ -789,7 +789,11 @@ static void lease_delete_assignments(struct lease *l, bool v6)
list_for_each_entry_safe(a, tmp, &l->assignments, lease_list) {
if (a->flags & flag)
+#ifdef DHCPV4_SUPPORT
v6 ? dhcpv6_ia_free_assignment(a) : dhcpv4_free_assignment(a);
+#else
+ dhcpv6_ia_free_assignment(a);
+#endif
}
}
@@ -870,8 +874,10 @@ static void lease_delete(struct lease *l)
list_for_each_entry(a, &l->assignments, lease_list) {
if (a->flags & OAF_DHCPV6)
dhcpv6_ia_free_assignment(a);
+#ifdef DHCPV4_SUPPORT
else if (a->flags & OAF_DHCPV4)
dhcpv4_free_assignment(a);
+#endif
}
free_lease(l);