From: "cron2 (Code Review)" Date: Tue, 31 Mar 2026 08:00:16 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <87462bce0994662d079888b9f12969894c59586b-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="r7wFE3tfbeY="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: ssl_ncp: Fix type of "found" parameter of check_pull_client_ncp List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: plaisthos , openvpn-devel --r7wFE3tfbeY= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/15= 94?usp=3Demail ) Change subject: ssl_ncp: Fix type of "found" parameter of check_pull_client= _ncp ...................................................................... ssl_ncp: Fix type of "found" parameter of check_pull_client_ncp In commit 91fd9614f980b02772e4dfbb09144c822ec97df0 type of "found" was changed to uint64_t. But due to -Wconversion not yet enabled in all of init.c one occurence of the old type was missed. Change-Id: I1a6dfc175075636bc7a5761215547077a9dc397a Signed-off-by: Frank Lichtenheld Acked-by: Arne Schwabe Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1594 Message-Id: <20260331060112.5195-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg36= 364.html Signed-off-by: Gert Doering --- M src/openvpn/ssl_ncp.c M src/openvpn/ssl_ncp.h 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openvpn/ssl_ncp.c b/src/openvpn/ssl_ncp.c index fdac6925..649665a 100644 --- a/src/openvpn/ssl_ncp.c +++ b/src/openvpn/ssl_ncp.c @@ -307,7 +307,7 @@ } bool -check_pull_client_ncp(struct context *c, const unsigned int found) +check_pull_client_ncp(struct context *c, const uint64_t found) { if (found & OPT_P_NCP) { diff --git a/src/openvpn/ssl_ncp.h b/src/openvpn/ssl_ncp.h index 837f662..dc3a750 100644 --- a/src/openvpn/ssl_ncp.h +++ b/src/openvpn/ssl_ncp.h @@ -49,7 +49,7 @@ * * @return Wether the client NCP process suceeded or failed */ -bool check_pull_client_ncp(struct context *c, unsigned int found); +bool check_pull_client_ncp(struct context *c, uint64_t found); /** * Iterates through the ciphers in server_list and return the first -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1594?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: merged Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I1a6dfc175075636bc7a5761215547077a9dc397a Gerrit-Change-Number: 1594 Gerrit-PatchSet: 2 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel --r7wFE3tfbeY= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 sub= mitted this change.

View Change

ssl_ncp: Fix type of "found" parameter=
 of check_pull_client_ncp

In commit 91fd9614f980b02772e4dfbb09144c82= 2ec97df0 type
of "found" was changed to uint64_t. But due to -= Wconversion
not yet enabled in all of init.c one occurence of the oldtype was missed.

Change-Id: I1a6dfc175075636bc7a5761215547077a9dc39= 7a
Signed-off-by: Frank Lichtenheld <frank@...2641...>
Acked-by= : Arne Schwabe <arne-openvpn@...1227...>
Gerrit URL: https://gerri= t.openvpn.net/c/openvpn/+/1594
Message-Id: <20260331060112.5195-1-ger= t@...1296...>
URL: https://www.mail-archive.com/openvpn-devel@...1096...= ourceforge.net/msg36364.html
Signed-off-by: Gert Doering <gert@...1826...= 6...>
---
M src/openvpn/ssl_ncp.c
M src/openvpn/ssl_ncp.h
2 = files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/openvpn/ssl_ncp.c b/src/openvpn/ssl_ncp.c
index fdac6925..649665a 100644
--- a/src/openvpn/ssl_ncp= .c
+++ b/src/openvpn/ssl_ncp.c
@@ -307,7 +3= 07,7 @@
}

bool-check_pull_client_ncp(struct c= ontext *c, const unsigned int found)
+check_pull_client_ncp(struct context *c, const uint64_t fo= und)
{
if (found & OPT_P_NCP)

{
diff --git a/src/openvpn/ssl_ncp.h b/sr= c/openvpn/ssl_ncp.h
index 837f662..dc3a750 100644--- a/src/openvpn/ssl_ncp.h
+++ b/src/openvpn/ssl_nc= p.h
@@ -49,7 +49,7 @@
*
= * @return Wether the client NCP process suceeded or failed
*/
-bool check_pull= _client_ncp(struct context *c, unsigned int found);
+bool check_pull_client_ncp(struct context= *c, uint64_t found);

/**
* Iterates through the ciphers in server_list and return the first

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

Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1a6dfc175075636bc7a57612155= 47077a9dc397a
Gerrit-Change-Number: 1594
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>
= --r7wFE3tfbeY=--