Skip to content

Commit 3ba7602

Browse files
flichtenheldcron2
authored andcommitted
ssl_ncp: Fix type of "found" parameter of check_pull_client_ncp
In commit 91fd961 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 <frank@lichtenheld.com> Acked-by: Arne Schwabe <arne-openvpn@rfc2549.org> Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1594 Message-Id: <20260331060112.5195-1-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg36364.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
1 parent bee158d commit 3ba7602

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/openvpn/ssl_ncp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ tls_poor_mans_ncp(struct options *o, const char *remote_ciphername)
307307
}
308308

309309
bool
310-
check_pull_client_ncp(struct context *c, const unsigned int found)
310+
check_pull_client_ncp(struct context *c, const uint64_t found)
311311
{
312312
if (found & OPT_P_NCP)
313313
{

src/openvpn/ssl_ncp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ struct context;
4949
*
5050
* @return Wether the client NCP process suceeded or failed
5151
*/
52-
bool check_pull_client_ncp(struct context *c, unsigned int found);
52+
bool check_pull_client_ncp(struct context *c, uint64_t found);
5353

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

0 commit comments

Comments
 (0)