[Openvpn-devel] Fixed that "--bind ipv6only" did not work due to incorrect parameter processing. It seems that "ipv6only" did not work from the beginning.
| Message ID | 20170928031620.22331-1-hashiz@meridiani.jp |
|---|---|
| State | Accepted |
| Headers |
Return-Path: <openvpn-devel-bounces@lists.sourceforge.net> Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director3.mail.ord1d.rsapps.net ([172.30.157.9]) by backend31.mail.ord1d.rsapps.net (Dovecot) with LMTP id iOERCt9nzVkZUwAAgoeIoA for <patchwork@openvpn.net>; Thu, 28 Sep 2017 17:21:35 -0400 Received: from proxy1.mail.ord1c.rsapps.net ([172.28.140.1]) by director3.mail.ord1d.rsapps.net (Dovecot) with LMTP id zNxvOTTWzFnxPQAAkXNnRw ; Thu, 28 Sep 2017 17:21:35 -0400 Received: from smtp10.gate.ord1c ([172.28.255.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy1.mail.ord1c.rsapps.net (Dovecot) with LMTP id jeZoMK9jzVkUEgAA2VeTtA ; Thu, 28 Sep 2017 17:21:35 -0400 X-Spam-Threshold: 95 X-Spam-Score: 0 X-Spam-Flag: NO X-Virus-Scanned: OK X-MessageSniffer-Scan-Result: 0 X-MessageSniffer-Rules: 0-298-965-1164-w 0-298-965-1528-w 0-298-0-6727-f X-CMAE-Scan-Result: 0 X-CNFS-Analysis: v=2.2 cv=G8VeKJs5 c=1 sm=1 tr=0 a=Q8DxjiC8O3VT/NpP1XjEZQ==:117 a=Q8DxjiC8O3VT/NpP1XjEZQ==:17 a=kj9zAlcOel0A:10 a=xqWC_Br6kY4A:10 a=2JCJgTwv5E4A:10 a=WiVod9pSvdkA:10 a=9sSjY8p1AAAA:8 a=P_JWiMecAAAA:8 a=FP58Ms26AAAA:8 a=mkmQqGwGvsM5QENDagQA:9 a=CjuIK1q_8ugA:10 a=-FEs8UIgK8oA:10 a=NWVoK91CQyQA:10 a=ub54wNWiXv_DzeFsgEJW:22 a=D0-HAvA3Hk9NMREbgwuX:22 X-Orig-To: justin@openvpn.net X-Originating-Ip: [216.34.181.88] Authentication-Results: smtp10.gate.ord1c.rsapps.net; iprev=pass policy.iprev="216.34.181.88"; spf=pass smtp.mailfrom="openvpn-devel-bounces@lists.sourceforge.net" smtp.helo="lists.sourceforge.net"; dkim=fail (signature verification failed) header.d=sourceforge.net; dkim=fail (signature verification failed) header.d=sf.net; dmarc=none (p=nil; dis=none) header.from=meridiani.jp X-Classification-ID: 015d5e22-a493-11e7-b754-0026b954785f-1-1 Received: from [216.34.181.88] ([216.34.181.88:59987] helo=lists.sourceforge.net) by smtp10.gate.ord1c.rsapps.net (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) (ecelerity 4.2.1.56364 r(Core:4.2.1.14)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id 8D/FA-20016-ED76DC95; Thu, 28 Sep 2017 17:21:34 -0400 Received: from localhost ([127.0.0.1] helo=sfs-ml-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.89) (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) id 1dxgDH-0004j9-4a; Thu, 28 Sep 2017 21:19:19 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.89) (envelope-from <hashiz@meridiani.jp>) id 1dxgDF-0004j1-In for openvpn-devel@lists.sourceforge.net; Thu, 28 Sep 2017 21:19:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Message-Id:Date:Subject:Cc:To:From; bh=rGC3fGwt3a2OBnk1OOC+B6weg3FeeJQ/cxj1INZnFjU=; b=aKCfcHM8gbuPvizxjL0Cuwn5/BO+eVxbTVLtNbYxzne+gYQNjaBLBvkcMwOSIXAarkbVZwPZFtj6AcmAnrqFM1mL+xo8/4blz5pAhzu4YZjwwXMGaq+GL5YzdLm3imnkqGxHTROiBBVszfc/hOAnA0/BLC493/LxneNSrzWDfoE=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x; h=Message-Id:Date:Subject:Cc:To:From; bh=rGC3fGwt3a2OBnk1OOC+B6weg3FeeJQ/cxj1INZnFjU=; b=E6LppT4gvX7kPeoiMqdXV9ZdFHJ2u0d2Cwn2CvwIr+z+YERdWKLiRFCINSAXnbkdzOfs1BcArz55B7TLGCRal5lfj3Tlf0RnWFFjr2vTp3m/nDqN3zxciHCcQ9tqm/FRNvcz1CIgTJ/GJ7VTr5A2QiOmxdf1oLzwXAUiYowPrE0=; Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of meridiani.jp designates 124.41.68.221 as permitted sender) client-ip=124.41.68.221; envelope-from=hashiz@meridiani.jp; helo=tomba.meridiani.jp; Received: from 7c2944dd.i-revonet.jp ([124.41.68.221] helo=tomba.meridiani.jp) by sog-mx-1.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1dxgDC-0001ZX-G4 for openvpn-devel@lists.sourceforge.net; Thu, 28 Sep 2017 21:19:17 +0000 Received: from ahonen.local.meridiani.jp (ahonen.meridiani.jp [IPv6:2409:11:8f80:710::4]) by tomba.meridiani.jp (Postfix) with ESMTPA id 024A4212A6E; Thu, 28 Sep 2017 12:16:46 +0900 (JST) From: hashiz <hashiz@meridiani.jp> To: openvpn-devel@lists.sourceforge.net Date: Thu, 28 Sep 2017 12:16:20 +0900 Message-Id: <20170928031620.22331-1-hashiz@meridiani.jp> X-Mailer: git-send-email 2.11.0 X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record X-Headers-End: 1dxgDC-0001ZX-G4 Subject: [Openvpn-devel] [PATCH] Fixed that "--bind ipv6only" did not work due to incorrect parameter processing. It seems that "ipv6only" did not work from the beginning. X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: <openvpn-devel.lists.sourceforge.net> List-Unsubscribe: <https://lists.sourceforge.net/lists/options/openvpn-devel>, <mailto:openvpn-devel-request@lists.sourceforge.net?subject=unsubscribe> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=openvpn-devel> List-Post: <mailto:openvpn-devel@lists.sourceforge.net> List-Help: <mailto:openvpn-devel-request@lists.sourceforge.net?subject=help> List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/openvpn-devel>, <mailto:openvpn-devel-request@lists.sourceforge.net?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox |
| Series |
[Openvpn-devel] Fixed that "--bind ipv6only" did not work due to incorrect parameter processing. It seems that "ipv6only" did not work from the beginning.
|
|
Commit Message
hashiz
Sept. 27, 2017, 5:16 p.m. UTC
--- src/openvpn/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
ACK, thanks.
I have modified the commit message to refer to the commit that broke this,
and added a short first line (which is what shows up in "git shortlog",
so you want this to be less than ~60-70 charcters, not multilien).
Your patch has been applied to the master and release/2.4 branch.
commit cdeba63ca3a9e5c765edecd11745e9e2cc1b945d (master)
commit b0ef0003c554db34f5623a920874c97b22bc0224 (release/2.4)
Author: hashiz <hashiz@meridiani.jp>
Date: Thu Sep 28 12:16:20 2017 +0900
Fix '--bind ipv6only'
Commit 3d6a4cded2b20fb81 introduced checking for "too many parameters"
at option processing, and neglected to take "ipv6only" as possible
(and optional) argument to "--bind" into account.
Trac: #938
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20170928031620.22331-1-hashiz@meridiani.jp>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg15522.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
--
kind regards,
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
diff --git a/src/openvpn/options.c b/src/openvpn/options.c index 3a5bccfc..5f31e7eb 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -5881,7 +5881,7 @@ add_option(struct options *options, VERIFY_PERMISSION(OPT_P_GENERAL|OPT_P_CONNECTION); options->ce.remote_port = p[1]; } - else if (streq(p[0], "bind") && !p[1]) + else if (streq(p[0], "bind") && !p[2]) { VERIFY_PERMISSION(OPT_P_GENERAL|OPT_P_CONNECTION); options->ce.bind_defined = true;