From: "cron2 (Code Review)" Date: Wed, 23 Oct 2024 12:03:18 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., gianmarco@...2726..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <2e998e6fc7911dc25d043348d0dfb348544365bd-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="c02PvPh3YOk="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: Fix for msbuild/mingw GHA failures List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: its_Giaan Cc: plaisthos , flichtenheld , openvpn-devel --c02PvPh3YOk= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/78= 5?usp=3Demail ) Change subject: Fix for msbuild/mingw GHA failures ...................................................................... Fix for msbuild/mingw GHA failures Commit cd8e25a6e9 removed a variable because it looked as if used only once anyway (1 assignment, 1 usage) - overlooking that on _WIN32 it's changed to NULL, which wasn't adjusted... This fix restores the wiped out "unsigned int *persistent" in multi_tcp_wait(), undoing this particular change of the previous commit. Change-Id: I8526aadb5151ddc997c836d5a691bcdfee700938 Signed-off-by: Gianmarco De Gregori Acked-by: Gert Doering Message-Id: <20241023113923.7420-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg29= 612.html Signed-off-by: Gert Doering --- M src/openvpn/mtcp.c 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openvpn/mtcp.c b/src/openvpn/mtcp.c index 67e3e8e..6faf45a 100644 --- a/src/openvpn/mtcp.c +++ b/src/openvpn/mtcp.c @@ -254,6 +254,7 @@ struct multi_tcp *mtcp) { int status; + unsigned int *persistent =3D &mtcp->tun_rwflags; socket_set_listen_persistent(c->c2.link_socket, mtcp->es, &c->c2.link_socket->ev_arg); @@ -271,7 +272,7 @@ persistent =3D NULL; } #endif - tun_set(c->c1.tuntap, mtcp->es, EVENT_READ, MTCP_TUN, &mtcp->tun_rwfla= gs); + tun_set(c->c1.tuntap, mtcp->es, EVENT_READ, MTCP_TUN, persistent); #if defined(TARGET_LINUX) || defined(TARGET_FREEBSD) dco_event_set(&c->c1.tuntap->dco, mtcp->es, MTCP_DCO); #endif -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/785?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: I8526aadb5151ddc997c836d5a691bcdfee700938 Gerrit-Change-Number: 785 Gerrit-PatchSet: 2 Gerrit-Owner: its_Giaan Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-MessageType: merged --c02PvPh3YOk= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 submitted this change.

View Change

Fix for msbuild/mingw GHA failures

Comm= it cd8e25a6e9 removed a variable because it looked as if
used only once = anyway (1 assignment, 1 usage) - overlooking that
on _WIN32 it's cha= nged to NULL, which wasn't adjusted...

This fix restores the wip= ed out "unsigned int *persistent" in
multi_tcp_wait(), undoing= this particular change of the previous
commit.

Change-Id: I8526a= adb5151ddc997c836d5a691bcdfee700938
Signed-off-by: Gianmarco De Gregori = <gianmarco@...2726...>
Acked-by: Gert Doering <gert@...1296...&= gt;
Message-Id: <20241023113923.7420-1-gert@...1296...>
URL: ht= tps://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg29612.htm= l
Signed-off-by: Gert Doering <gert@...1296...>
---
M src/op= envpn/mtcp.c
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/openvpn/mtcp.c b/src/openvpn/mtcp.c
ind= ex 67e3e8e..6faf45a 100644
--- a/src/openvpn/mtcp.c<= br>+++ b/src/openvpn/mtcp.c
@@ -254,6 +254,7 @@
struct multi_tcp *mtcp)
{
int status;
+ unsigned int *persistent =3D &mtcp->tun_rwflags;<= br> socket_set_listen_persistent(c->c2.link_socket, mtcp->e= s,
&c->c2.link_soc= ket->ev_arg);

@@ -271,7 +272,7 @@
persistent =3D NULL;
}
= #endif
- tun_= set(c->c1.tuntap, mtcp->es, EVENT_READ, MTCP_TUN, &mtcp->tun_r= wflags);
+ tun_set= (c->c1.tuntap, mtcp->es, EVENT_READ, MTCP_TUN, persistent); #if defined(TARGET_LINUX) || defined(TARGET_FREEBSD)
dco_event_set(&c->c1.tuntap->dco, mtcp->es, MTCP_DCO);<= /span>
#endif

To view, visit = change 78= 5. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I8526aadb5151ddc997c836d5a69= 1bcdfee700938
Gerrit-Change-Number: 785
Gerrit-PatchSet: 2
Gerrit-Owner: its_Giaan <gianmarco@...2786...= ..>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-MessageType: merged
--c02PvPh3YOk=--