From: "its_Giaan (Code Review)" Date: Wed, 23 Oct 2024 11:05:12 +0000 References: Reply-To: gianmarco@...2726..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <63d4a5e2c940a336b4ad361084ae02a7c6b6552f-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="qtSChsl8y2o="; 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: plaisthos , flichtenheld Cc: openvpn-devel --qtSChsl8y2o= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos. Hello plaisthos, flichtenheld, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/785?usp=3Demail to review the following change. Change subject: Fix for msbuild/mingw GHA failures ...................................................................... Fix for msbuild/mingw GHA failures Commit ("event/multi: add event_arg object to make event handling more generic") accidentally removed a variable declaration and its usage because of a rebase, this fix restore the wiped out unsigned int *persistent in multi_tcp_wait(). Change-Id: I8526aadb5151ddc997c836d5a691bcdfee700938 Signed-off-by: Gianmarco De Gregori --- M src/openvpn/mtcp.c 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/85/785/1 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: 1 Gerrit-Owner: its_Giaan Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-MessageType: newchange --qtSChsl8y2o= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld, plaisthos.

its_Giaan would like plaisthos and flichtenheld to review this change.

Vi= ew Change

Fix for msbuild/mingw GHA failures

Commit ("event= /multi: add event_arg object to make
event handling more generic") = accidentally removed
a variable declaration and its usage because of arebase, this fix restore the wiped out
unsigned int *persistent in mul= ti_tcp_wait().

Change-Id: I8526aadb5151ddc997c836d5a691bcdfee700938<= br>Signed-off-by: Gianmarco De Gregori <gianmarco@...2726...>
---<= br>M src/openvpn/mtcp.c
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/85/78=
5/1
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, m= tcp->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_rwflags);
+ = tun_set(c->c1.tuntap, mtcp->es, EVENT_READ, MTCP_TUN, persistent);<= /span>
#if defined(TARGET_LINUX) || defined(TARGET_FREEBSD)

dco_event_set(&c->c1.tuntap->dco, mtcp->es, MT= CP_DCO);
#endif

To vie= w, visit = change 785. 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: 1
Gerrit-Owner: its_Giaan <gianmarco@...2786...= ..>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-MessageType: newchange
--qtSChsl8y2o=--