diff options
Diffstat (limited to 'networking/udhcp/d6_dhcpc.c')
-rw-r--r-- | networking/udhcp/d6_dhcpc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c index cdd06188e..a72fd31bd 100644 --- a/networking/udhcp/d6_dhcpc.c +++ b/networking/udhcp/d6_dhcpc.c | |||
@@ -961,6 +961,7 @@ static NOINLINE int d6_recv_raw_packet(struct in6_addr *peer_ipv6, struct d6_pac | |||
961 | d6_dump_packet(&packet.data); | 961 | d6_dump_packet(&packet.data); |
962 | 962 | ||
963 | bytes -= sizeof(packet.ip6) + sizeof(packet.udp); | 963 | bytes -= sizeof(packet.ip6) + sizeof(packet.udp); |
964 | memset(d6_pkt, 0, sizeof(*d6_pkt)); | ||
964 | memcpy(d6_pkt, &packet.data, bytes); | 965 | memcpy(d6_pkt, &packet.data, bytes); |
965 | return bytes; | 966 | return bytes; |
966 | } | 967 | } |