net/icmp/icmp_input.c: Clear sin_zero

This should have been part of commit 861efdf8a3 but was overlooked.
This commit is contained in:
Gregory Nutt 2020-02-25 09:13:12 -06:00 committed by Xiang Xiao
parent 861efdf8a3
commit 1f1356a2f5

View file

@ -128,6 +128,7 @@ static uint16_t icmp_datahandler(FAR struct net_driver_s *dev,
net_ipv4addr_copy(inaddr.sin_addr.s_addr,
net_ip4addr_conv32(ipv4->srcipaddr));
memset(inaddr.sin_zero, 0, sizeof(inaddr.sin_zero));
/* Copy the src address info into the I/O buffer chain. We will not wait
* for an I/O buffer to become available in this context. It there is