From: "flichtenheld (Code Review)"
Date: Tue, 21 Oct 2025 16:19:09 +0000
In-Reply-To:
References:
Reply-To: frank@...2641..., arne-openvpn@...1227...,
openvpn-devel@lists.sourceforge.net
Message-ID: <652d82f13e9b848f60b8f5c151e3fb47742d0f6a-EmailReplacePatchSet-HTML@...2715...>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="ll9RjA9GMxc="; 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: plaisthos
Cc: openvpn-devel
--ll9RjA9GMxc=
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: plaisthos.
Hello plaisthos,
I'd like you to reexamine a change. Please visit
http://gerrit.openvpn.net/c/openvpn/+/1292?usp=3Demail
to look at the new patch set (#2).
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
---
M src/openvpn/multi.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/92/1292/2
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: 2
Gerrit-Owner: flichtenheld
Gerrit-Reviewer: plaisthos
Gerrit-CC: openvpn-devel
Gerrit-Attention: plaisthos
--ll9RjA9GMxc=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is cur=
rently required from: plaisthos.
flichtenheld uploaded patch set #2 to this change.
<=
p>View C=
hange
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' i=
s used uninitialized"
Change-Id: I76babf08b041162ddedf7a9b7c279=
9847f15cbdc
Signed-off-by: Frank Lichtenheld <frank@...2641...>
---
M src/openvpn/multi.c
1 file changed, 1 insertion(+), 1 deletion=
(-)
git pull ssh://gerrit.openvpn.net:29418/open=
vpn refs/changes/92/1292/2
diff --git a/src/openvpn/multi.c b/src/o=
penvpn/multi.c
index e907524..fa9c654 100644
--- a/src/openvpn/multi.c
+++ b/src/openvpn/multi.c
@@ -3965,9 +3965,9 @@
saddr.addr.in4.sin_fa=
mily =3D AF_INET;
saddr.addr.in4.sin_addr.s_addr =3D h=
tonl(addr);
saddr.addr.in4.sin_port =3D htons(port);=
span>
+ maddr.proto =3D p=
roto;
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)))
{
<=
span>
To view, visit change 1292. To unsubscribe, or for hel=
p writing mail filters, visit settings.
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I76babf08b041162ddedf7a9b7c2=
799847f15cbdc
Gerrit-Change-Number: 1292
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <frank@...2723...=
.>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...=
.1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...=
ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...=
..1227...>
=
--ll9RjA9GMxc=--