mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 09:45:55 +08:00
net/icmp/icmp_input.c: Clear sin_zero
This should have been part of commit 861efdf8a3 but was overlooked.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user