diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2019-02-18 15:35:04 +0100 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2019-02-18 16:02:03 +0100 |
commit | 1f01299c677653cf6d67c82c2df7b7e028508876 (patch) | |
tree | 77d829052aa45c25e492c1f42ccaeec1019a0f13 /src/config.c | |
parent | 67b3a141da8bbfd9fc506d043f1e7e1a92e2c7f9 (diff) |
config: fix build failure in case DHCPv4 support is disabled
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 6 |
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); |