1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-20 02:42:09 +03:00

kex.c : Correct type cast in curve25519_sha256() (#365)

This commit is contained in:
Tseng Jun
2019-04-26 00:55:56 +08:00
committed by Will Cosgrove
parent 934537c449
commit 460fe32f7d

View File

@@ -2691,7 +2691,7 @@ curve25519_sha256(LIBSSH2_SESSION *session, unsigned char *data,
goto clean_exit;
}
session->server_hostkey_len = (u_int32_t)hostkey_len;
session->server_hostkey_len = (uint32_t)hostkey_len;
session->server_hostkey = LIBSSH2_ALLOC(session,
session->server_hostkey_len);
if(!session->server_hostkey) {