diff options
author | Alan Somers <asomers@FreeBSD.org> | 2019-08-15 17:24:10 +0000 |
---|---|---|
committer | Alan Somers <asomers@FreeBSD.org> | 2019-08-15 17:24:10 +0000 |
commit | 0b894a06bd77c71588d9b2aa5dfaa625a5b87838 (patch) | |
tree | 4f06b7db4015e3134c62cec504d1a5c3c063fe86 /sbin/ping6/ping6.c | |
parent | ecc7fd09a6675dc1791cc3a8c671b9b976e73e18 (diff) |
ping6: Fix data type of the buffer for ancillary data of a received message
The old code worked, but wasted some stack space.
Submitted by: Ján Sučan <sucanjan@gmail.com>
MFC after: 2 weeks
Sponsored by: Google, inc. (Google Summer of Code 2019)
Differential Revision: https://reviews.freebsd.org/D21275
Notes
Notes:
svn path=/head/; revision=351090
Diffstat (limited to 'sbin/ping6/ping6.c')
-rw-r--r-- | sbin/ping6/ping6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c index 42b223bb24bb..917503ccf219 100644 --- a/sbin/ping6/ping6.c +++ b/sbin/ping6/ping6.c @@ -307,7 +307,7 @@ main(int argc, char *argv[]) int ip6optlen = 0; struct cmsghdr *scmsgp = NULL; /* For control (ancillary) data received from recvmsg() */ - struct cmsghdr cm[CONTROLLEN]; + u_char cm[CONTROLLEN]; #if defined(SO_SNDBUF) && defined(SO_RCVBUF) u_long lsockbufsize; int sockbufsize = 0; |