commit | 51e4eeeb04b8dd8510ed267d580751525e77cb77 | [log] [tgz] |
---|---|---|
author | Paul Maddock <Paul@whitefall.co.uk> | Tue Jun 12 16:37:40 2018 +0100 |
committer | Simon Kelley <simon@thekelleys.org.uk> | Tue Jun 12 16:37:40 2018 +0100 |
tree | 3c9126393c3d4369182436fa40a109420b920c8b | |
parent | 05ff659a3c0d95be6d41fae755243988a1bb3387 [diff] [blame] |
Fix address-dependent domains for IPv6. Thanks to Paul Maddock for spotting this. It seems to have been broken forever.
diff --git a/src/lease.c b/src/lease.c index 5c33df7..644af08 100644 --- a/src/lease.c +++ b/src/lease.c
@@ -87,7 +87,7 @@ if ((lease = lease6_allocate(&addr.addr.addr6, lease_type))) { lease_set_iaid(lease, strtoul(s, NULL, 10)); - domain = get_domain6((struct in6_addr *)lease->hwaddr); + domain = get_domain6(&lease->addr6); } } #endif