1
0
mirror of https://github.com/moparisthebest/curl synced 2025-02-28 17:31:46 -05:00

libssh2: fix variable type

This led to a conversion warning on 64-bit MinGW, which has 32-bit
`long` but 64-bit `size_t`.

Closes https://github.com/curl/curl/pull/4823
This commit is contained in:
Marcel Raad 2020-01-15 20:28:01 +01:00
parent c2feed05bc
commit 6f69edf962
No known key found for this signature in database
GPG Key ID: 33C416EFAE4D6F02

View File

@ -685,7 +685,7 @@ static CURLcode ssh_force_knownhost_key_type(struct connectdata *conn)
struct Curl_easy *data = conn->data;
struct libssh2_knownhost* store = NULL;
const char *kh_name_end = NULL;
long unsigned int kh_name_size = 0;
size_t kh_name_size = 0;
int port = 0;
bool found = false;