From: "flichtenheld (Code Review)" Date: Mon, 30 Mar 2026 21:27:24 +0000 References: Reply-To: frank@...2641..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: <3e95a633dbc2e2384e97cca872eca423b9293b4a-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="zhSgOsZGUhk="; 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: plaisthos Cc: openvpn-devel --zhSgOsZGUhk= 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/+/1594?usp=3Demail to review the following change. 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 --- M src/openvpn/ssl_ncp.c M src/openvpn/ssl_ncp.h 2 files changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/94/1594/1 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: newchange Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I1a6dfc175075636bc7a5761215547077a9dc397a Gerrit-Change-Number: 1594 Gerrit-PatchSet: 1 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos --zhSgOsZGUhk= 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

ssl_ncp: Fix type of "found" para=
meter of check_pull_client_ncp

In commit 91fd9614f980b02772e4dfbb091= 44c822ec97df0 type
of "found" was changed to uint64_t. But due= to -Wconversion
not yet enabled in all of init.c one occurence of the o= ld
type was missed.

Change-Id: I1a6dfc175075636bc7a5761215547077a= 9dc397a
Signed-off-by: Frank Lichtenheld <frank@...2641...>
---=
M src/openvpn/ssl_ncp.c
M src/openvpn/ssl_ncp.h
2 files changed, = 2 insertions(+), 2 deletions(-)

git pull ssh://g=
errit.openvpn.net:29418/openvpn refs/changes/94/1594/1
diff --git a=
/src/openvpn/ssl_ncp.c b/src/openvpn/ssl_ncp.c
index fdac69= 25..649665a 100644
--- a/src/openvpn/ssl_ncp.c
+++ b/src/openvpn/ssl_ncp.c
@@ -307,7 +307,7 @@<= br> }

bool
-check_pull_client_ncp(struct context *c, co= nst 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 W= ether the client NCP process suceeded or failed
*/=
-bool check_pull_client_ncp(s= truct context *c, unsigned int found);
+bool check_pull_client_ncp(struct context *c, uint64_t f= ound);

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

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

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