From: "cron2 (Code Review)" Date: Wed, 12 Feb 2025 13:04:02 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <83ef1503279a14525d2b984b25ea2f748df10d79-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="dJzQJbfbf30="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: Fix oversight of link socket code change in Android code path List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos , flichtenheld Cc: openvpn-devel --dJzQJbfbf30= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#2) to the change originally created by= plaisthos. ( http://gerrit.openvpn.net/c/openvpn/+/888?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by cron2 Change subject: Fix oversight of link socket code change in Android code pa= th ...................................................................... Fix oversight of link socket code change in Android code path Commit 94b391d7ef5 changed context->link_socket to context->link_sockets but did not change the Android code path. Change-Id: If6a636b2099d948e249cf92ed2ba91d1698ee42f Signed-off-by: Arne Schwabe Acked-by: Gert Doering Message-Id: <20250212123820.19099-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg30= 833.html Signed-off-by: Gert Doering --- M src/openvpn/init.c 1 file changed, 3 insertions(+), 3 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/88/888/2 diff --git a/src/openvpn/init.c b/src/openvpn/init.c index 4014517..a7f7db4 100644 --- a/src/openvpn/init.c +++ b/src/openvpn/init.c @@ -4381,16 +4381,16 @@ int socketfd =3D -1; struct context *c =3D (struct context *) arg; - if (!c->c2.link_socket) + if (!c->c2.link_sockets || !c->c2.link_sockets[0]) { return -1; } - if (c->c2.link_socket->sd =3D=3D SOCKET_UNDEFINED) + if (c->c2.link_sockets[0]->sd =3D=3D SOCKET_UNDEFINED) { return -1; } - socketfd =3D c->c2.link_socket->sd; + socketfd =3D c->c2.link_sockets[0]->sd; if (!c->options.pull || c->c2.tls_multi->use_peer_id || samenetwork) { return socketfd; -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/888?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: If6a636b2099d948e249cf92ed2ba91d1698ee42f Gerrit-Change-Number: 888 Gerrit-PatchSet: 2 Gerrit-Owner: plaisthos Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-MessageType: newpatchset --dJzQJbfbf30= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 uploaded patch set #2 to the change originally cr= eated by plaisthos.

View Change

The following approvals got outdated= and were removed: Code-Review+2 by cron2

Fix oversight of link socket code change in Android =
code path

Commit 94b391d7ef5 changed context->link_socket to cont= ext->link_sockets
but did not change the Android code path.

Ch= ange-Id: If6a636b2099d948e249cf92ed2ba91d1698ee42f
Signed-off-by: Arne S= chwabe <arne@...1227...>
Acked-by: Gert Doering <gert@...2132...= .>
Message-Id: <20250212123820.19099-1-gert@...1296...>
URL:= https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg30833.= html
Signed-off-by: Gert Doering <gert@...1296...>
---
M src= /openvpn/init.c
1 file changed, 3 insertions(+), 3 deletions(-)

<= /pre>
<=
span>diff --git a/src/openvpn/init.c b/src/openvpn/init.c
i= ndex 4014517..a7f7db4 100644
--- a/src/openvpn/init.c
+++ b/src/openvpn/init.c
@@ -4381,16 +4381,16 @@=

int socketfd =3D -1;
struct context *c =3D (struct context *) arg;

- if (!c->c2.link_socket)
+ if (!c->c2.link_sockets |= | !c->c2.link_sockets[0])
{
= return -1;
}
- if (c->c2.link_socket->sd =3D=3D SOCKET_UNDEFINED)<= /span>
+ if (c->c2.lin= k_sockets[0]->sd =3D=3D SOCKET_UNDEFINED)
{<= br> return -1;
}

- socketfd =3D c->c2.l= ink_socket->sd;
+ = socketfd =3D c->c2.link_sockets[0]->sd;
if (!= c->options.pull || c->c2.tls_multi->use_peer_id || samenetwork)

{
return socketfd;

To view, visit change 888. To unsubscribe, or for help w= riting mail filters, visit s= ettings.

=
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: If6a636b2099d948e249cf92ed2b= a91d1698ee42f
Gerrit-Change-Number: 888
Gerrit-PatchSet: 2
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-MessageType: newpatchset
--dJzQJbfbf30=--