dhcpv6: use correct length when copying duid