diff --git a/src/wire/dhcpv4.rs b/src/wire/dhcpv4.rs index 781aa4369..af45be4be 100644 --- a/src/wire/dhcpv4.rs +++ b/src/wire/dhcpv4.rs @@ -854,7 +854,7 @@ impl<'a> Repr<'a> { let data_len = dns_servers.iter().flatten() .enumerate() - .map(|(i, ip)| { + .inspect(|(i, ip)| { servers[(i * IP_SIZE)..((i + 1) * IP_SIZE)] .copy_from_slice(ip.as_bytes()); }).count() * IP_SIZE;