From: "cron2 (Code Review)" Date: Tue, 21 Oct 2025 19:45:55 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., gianmarco@...2726..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <61d0dc259333f9304a5191fe644998f93dc06199-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="Nh0aw7RPrVE="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: multi: Fix wrong usage of mroute_extract_openvpn_sockaddr List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld , plaisthos , its_Giaan Cc: openvpn-devel --Nh0aw7RPrVE= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#3) to the change originally created by= flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1292?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by cron2, Code-Review+2 by its_Giaan Change subject: multi: Fix wrong usage of mroute_extract_openvpn_sockaddr ...................................................................... multi: Fix wrong usage of mroute_extract_openvpn_sockaddr maddr.proto needs to be set before the call since that will change the behavior. Found by GCC "'maddr.proto' is used uninitialized" Change-Id: I76babf08b041162ddedf7a9b7c2799847f15cbdc Signed-off-by: Frank Lichtenheld Acked-by: Gert Doering Acked-by: Gianmarco De Gregori Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1292 Message-Id: <20251021193147.26778-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg33= 830.html Signed-off-by: Gert Doering --- M src/openvpn/multi.c 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/92/1292/3 diff --git a/src/openvpn/multi.c b/src/openvpn/multi.c index e907524..fa9c654 100644 --- a/src/openvpn/multi.c +++ b/src/openvpn/multi.c @@ -3965,9 +3965,9 @@ saddr.addr.in4.sin_family =3D AF_INET; saddr.addr.in4.sin_addr.s_addr =3D htonl(addr); saddr.addr.in4.sin_port =3D htons(port); + maddr.proto =3D proto; if (mroute_extract_openvpn_sockaddr(&maddr, &saddr, true)) { - maddr.proto =3D proto; hash_iterator_init(m->iter, &hi); while ((he =3D hash_iterator_next(&hi))) { -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1292?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: newpatchset Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I76babf08b041162ddedf7a9b7c2799847f15cbdc Gerrit-Change-Number: 1292 Gerrit-PatchSet: 3 Gerrit-Owner: flichtenheld Gerrit-Reviewer: cron2 Gerrit-Reviewer: its_Giaan Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel --Nh0aw7RPrVE= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 upl= oaded patch set #3 to the change originally created by flichtenhel= d.

View Change

The following approvals got outdated and were remove= d: Code-Review+2 by cron2, Code-Review+2 by its_Giaan

multi: =
Fix wrong usage of mroute_extract_openvpn_sockaddr

maddr.proto needs= to be set before the call since that
will change the behavior.

F= ound by GCC "'maddr.proto' is used uninitialized"

= Change-Id: I76babf08b041162ddedf7a9b7c2799847f15cbdc
Signed-off-by: Fran= k Lichtenheld <frank@...2641...>
Acked-by: Gert Doering <gert@...220...= ..1296...>
Acked-by: Gianmarco De Gregori <gianmarco@...2726...>= ;
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1292
Message-Id:= <20251021193147.26778-1-gert@...1296...>
URL: https://www.mail-ar= chive.com/openvpn-devel@lists.sourceforge.net/msg33830.html
Signed-off-b= y: Gert Doering <gert@...1296...>
---
M src/openvpn/multi.c
= 1 file changed, 1 insertion(+), 1 deletion(-)

gi=
t pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/92/1292/3
<= pre style=3D"font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/openvpn/multi.c b/src/openvpn/multi.c
in= dex e907524..fa9c654 100644
--- a/src/openvpn/multi.c
+++ b/src/openvpn/multi.c
@@ -3965,9 +3965,9 @@<= /span>
saddr.addr.in4.sin_family =3D AF_INET;
saddr.addr.in4.sin_addr.s_addr =3D htonl(addr);

= saddr.addr.in4.sin_port =3D htons(port);
+ maddr.proto =3D proto;
if (mr= oute_extract_openvpn_sockaddr(&maddr, &saddr, true))
{

- maddr= .proto =3D proto;
hash_iterator_init(m->iter, &= amp;hi);
while ((he =3D hash_iterator_next(&hi= )))
{

To view,= visit c= hange 1292. To unsubscribe, or for help writing mail filters, visit settings.

<= meta itemprop=3D"name" content=3D"View Change"/>
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I76babf08b041162ddedf7a9b7c2= 799847f15cbdc
Gerrit-Change-Number: 1292
Gerrit-PatchSet: 3
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: its_Giaan <gianmarco@...1664...= 26...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --Nh0aw7RPrVE=--