Date: Tue, 8 Aug 2023 21:23:23 GMT From: Kristof Provost <kp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 9f2cddd261d0 - main - ping: use the in6_addr buffer when parsing src address as AF_INET6 Message-ID: <202308082123.378LNNnI023173@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=9f2cddd261d09b736893454cb8b7aa0651ac5211 commit 9f2cddd261d09b736893454cb8b7aa0651ac5211 Author: R. Christian McDonald <rcm@rcm.sh> AuthorDate: 2023-08-08 18:40:02 +0000 Commit: Kristof Provost <kp@FreeBSD.org> CommitDate: 2023-08-08 21:21:49 +0000 ping: use the in6_addr buffer when parsing src address as AF_INET6 Reviewed by: kp MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") --- sbin/ping/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/ping/main.c b/sbin/ping/main.c index 2f94b5d3227d..bfe19e0ff442 100644 --- a/sbin/ping/main.c +++ b/sbin/ping/main.c @@ -102,7 +102,7 @@ main(int argc, char *argv[]) */ if (inet_pton(AF_INET, optarg, &a) == 1) ipv4 = true; - else if (inet_pton(AF_INET6, optarg, &a) == 1) + else if (inet_pton(AF_INET6, optarg, &a6) == 1) ipv6 = true; break; #endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308082123.378LNNnI023173>