From nobody Wed Aug 16 17:48:08 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RQwbD4prSz4qtyk; Wed, 16 Aug 2023 17:48:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RQwbD48bmz3TBJ; Wed, 16 Aug 2023 17:48:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692208088; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5p09CQyEpR+OMoJV/MeyGnJj67E2pGrjSF3Q/knDbZk=; b=FTO4c/IAMqdZBb5rWID60+jbA3Sgtc9Iyz+xZm5l7oBYxhKQygDFm4jsjbnrU1obYw3Psm pBdPVvFngR48hAdhMNBsGmQF/2+Q2emx6BInNFVHc9iLArOma0nSO2Kq0VlAJObpl/nBFN isRrzDQ4DFrSFt5sr4E7uT0sLwRZIKbirr6eJS4UqcN5MzcAFoo8Llw+1nExXALaZMaK16 kT6Dbe8ef7/wCZJQUH+GtGlmtGH4y2C1L3h+joCcAuZye9fT/dZr7xWoLQTcHRRKXV4TQm tr8AwwNrmZcDOiExdxlKjYindm2dLN4f28FROhZ4lclxiTpCqKcRmcCtgOQj/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692208088; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=5p09CQyEpR+OMoJV/MeyGnJj67E2pGrjSF3Q/knDbZk=; b=r4LaXcv9+EPZYrxkIN2dsb4rWGrcQ1FDJSKeDUC65knVzg4vaa9uG+JMeZZH7zAhzJA1UC 6rkxJoHEOesy2NuxuLatGD0gN+2B+ujntuq1tzdT+wYXlQiv9qFE1CwJ2h7oXi/IJwHd3C gZDChFfwAxCWXKngA0i63vadEm+3UcOw1O4reiytDRNJIAJ0slJJHZ0RGbjme8WTDuHLJr IkAWgMwLKeiI4M6t6jhF3e8cIz7g5dk5/5/RegjJGECezcyR6Jq8m6AmKZtEsWqy4Amh6v GDyblwIKzh5gkwtOwFT0xE0OC0yxkQrjZziY023DFyzeUxPM8WpdHPiWgTl/oQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692208088; a=rsa-sha256; cv=none; b=rUoqJkuSktCpnvty/oVNtHDCnREvy5Xy/I4vwVcRW5jjBUQCxLjKRouu1BW2mbwGs+V8Tx 2MLViRcfJg9sNzjUZ0P+eDgvJ/Wk4GTj934tmcZGGYbeKqo+tKcEz9Z7WtfudFUG/M13Lf iVVQK/KKESLO38cNMn7QTqXL3T6rlAQVaFxLyxgGATwCSyi/vdWHhS3V+iF2xgJmz4QL9G IkNJ0DMxS9qQkWw5cY6bSoi/BQ9kCNdhHYZYENIUs8PMRVVKud82O1YRsgfVxwsth/7J9R kN4BS3NPJEfpfbWlI3P2KrWBoK1E64oj/vEvRc/ZwjHr/XgYJ9GsCzLfuEHGIg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RQwbD31fnz11Pv; Wed, 16 Aug 2023 17:48:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 37GHm81u042031; Wed, 16 Aug 2023 17:48:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37GHm8cE042028; Wed, 16 Aug 2023 17:48:08 GMT (envelope-from git) Date: Wed, 16 Aug 2023 17:48:08 GMT Message-Id: <202308161748.37GHm8cE042028@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kristof Provost Subject: git: 31d385e78eba - stable/13 - ping: use the in6_addr buffer when parsing src address as AF_INET6 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 31d385e78eba5d0fd8a3d13fde86e345917a2588 Auto-Submitted: auto-generated The branch stable/13 has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=31d385e78eba5d0fd8a3d13fde86e345917a2588 commit 31d385e78eba5d0fd8a3d13fde86e345917a2588 Author: R. Christian McDonald AuthorDate: 2023-08-08 18:40:02 +0000 Commit: Kristof Provost CommitDate: 2023-08-16 15:04:04 +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") (cherry picked from commit 9f2cddd261d09b736893454cb8b7aa0651ac5211) --- 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