]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
ssl_ncp: Fix type of "found" parameter of check_pull_client_ncp
authorFrank Lichtenheld <frank@lichtenheld.com>
Tue, 31 Mar 2026 06:01:05 +0000 (08:01 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 31 Mar 2026 07:59:22 +0000 (09:59 +0200)
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 <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>
src/openvpn/ssl_ncp.c
src/openvpn/ssl_ncp.h

index fdac6925e615e264fa257b53f927c8e453d8f9fd..649665abc066628e3bcd31b48fdfd4b65b71fc1a 100644 (file)
@@ -307,7 +307,7 @@ tls_poor_mans_ncp(struct options *o, const char *remote_ciphername)
 }
 
 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)
     {
index 837f662c958f905b9d1a9739cc60c7f79ef28316..dc3a750a7b3d05b9eee1a073df69d7caea848dc7 100644 (file)
@@ -49,7 +49,7 @@ struct context;
  *
  * @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