net/icmp/icmp_input.c: Clear sin_zero
This should have been part of commit 861efdf8a3
but was overlooked.
This commit is contained in:
parent
861efdf8a3
commit
1f1356a2f5
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue