You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/02/25 15:33:03 UTC
[incubator-nuttx] branch master updated: net/icmp/icmp_input.c:
Clear sin_zero
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 1f1356a net/icmp/icmp_input.c: Clear sin_zero
1f1356a is described below
commit 1f1356a2f5ee91ae077038c9e7b7a8fccc4180b8
Author: Gregory Nutt <gn...@nuttx.org>
AuthorDate: Tue Feb 25 09:13:12 2020 -0600
net/icmp/icmp_input.c: Clear sin_zero
This should have been part of commit 861efdf8a3f7960119c2fc84c8333c75fea1434c but was overlooked.
---
net/icmp/icmp_input.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/icmp/icmp_input.c b/net/icmp/icmp_input.c
index 2bb83f3..1c9bf88 100644
--- a/net/icmp/icmp_input.c
+++ b/net/icmp/icmp_input.c
@@ -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