diff options
author | Steven Barth <steven@midlink.org> | 2015-09-07 15:28:10 +0200 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2015-09-07 15:30:05 +0200 |
commit | cb1842c117030e6779f9556cd5d86b1a0ef145d7 (patch) | |
tree | 672eb94fc954445eba4b5187988ed5453e26bdfc | |
parent | a3d1f5148222174f12ea8df0c20a554fc5eaabab (diff) |
dhcpv6: use correct length when copying duid
-rw-r--r-- | src/dhcpv6-ia.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcpv6-ia.c b/src/dhcpv6-ia.c index 30bffbc..9b8c479 100644 --- a/src/dhcpv6-ia.c +++ b/src/dhcpv6-ia.c @@ -109,7 +109,7 @@ int setup_dhcpv6_ia_interface(struct interface *iface, bool enable) a->assigned = ((i4a / 100) << 8) | (((i4a % 100) / 10) << 4) | (i4a % 10); } odhcpd_urandom(a->key, sizeof(a->key)); - memcpy(a->clid_data, lease->duid, a->clid_len); + memcpy(a->clid_data, lease->duid, lease->duid_len); memcpy(a->mac, lease->mac.ether_addr_octet, sizeof(a->mac)); // Assign to all interfaces |