From: "flichtenheld (Code Review)" Date: Mon, 8 Dec 2025 16:49:10 +0000 References: Reply-To: frank@...2641..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: <556ef85850a806398aec6dbea725f6d4def04a7e-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="xFQjmtJSOPU="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: socket: Initialize struct in_addr_t in getaddr() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: openvpn-devel --xFQjmtJSOPU= 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 do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/1420?usp=3Demail to review the following change. Change subject: socket: Initialize struct in_addr_t in getaddr() ...................................................................... socket: Initialize struct in_addr_t in getaddr() We have false-positive "=E2=80=98addr=E2=80=99 may be used uninitialized" warnings with MinGW 13.0.0 compiler. Work around them. Change-Id: I999916f9561a638214b70cf43de78060e9e0e792 Signed-off-by: Frank Lichtenheld --- M src/openvpn/socket.c 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/20/1420/1 diff --git a/src/openvpn/socket.c b/src/openvpn/socket.c index 80c2895..3e90833 100644 --- a/src/openvpn/socket.c +++ b/src/openvpn/socket.c @@ -202,7 +202,7 @@ getaddr(unsigned int flags, const char *hostname, int resolve_retry_second= s, bool *succeeded, struct signal_info *sig_info) { - in_addr_t addr; + in_addr_t addr =3D { 0 }; int status; status =3D get_addr_generic(AF_INET, flags, hostname, &addr, NULL, res= olve_retry_seconds, -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1420?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: newchange Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I999916f9561a638214b70cf43de78060e9e0e792 Gerrit-Change-Number: 1420 Gerrit-PatchSet: 1 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos --xFQjmtJSOPU= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: plaisthos.

flichtenheld would like plaisthos to review this change.

V= iew Change

socket: Initialize struct in_addr_t in geta=
ddr()

We have false-positive "=E2=80=98addr=E2=80=99 may be use= d uninitialized"
warnings with MinGW 13.0.0 compiler. Work around t= hem.

Change-Id: I999916f9561a638214b70cf43de78060e9e0e792
Signed-= off-by: Frank Lichtenheld <frank@...2641...>
---
M src/openvpn/= socket.c
1 file changed, 1 insertion(+), 1 deletion(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/20/1= 420/1
diff --git a/src/openvpn/socket.c b/src/openvpn/socket.c
index 80c2895..3e90833 100644
--- a/src/openvpn= /socket.c
+++ b/src/openvpn/socket.c
@@ -20= 2,7 +202,7 @@
getaddr(unsigned int flags, const char *host= name, int resolve_retry_seconds, bool *succeeded,
= struct signal_info *sig_info)
{
- in_addr_t addr;
+ in_addr_t addr =3D { 0 };
= int status;

status =3D get_addr_g= eneric(AF_INET, flags, hostname, &addr, NULL, resolve_retry_seconds,

To view, visit change 1420. To unsubscribe, o= r for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I999916f9561a638214b70cf43de= 78060e9e0e792
Gerrit-Change-Number: 1420
Gerrit-PatchSet: 1
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...>
= --xFQjmtJSOPU=--