summaryrefslogtreecommitdiffstats
path: root/src/dh.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dh.c')
-rw-r--r--src/dh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dh.c b/src/dh.c
index fc14ff60..e489a1d5 100644
--- a/src/dh.c
+++ b/src/dh.c
@@ -615,9 +615,9 @@ int make_sessionid(ssh_session session) {
rc = ssh_buffer_pack(buf,
"dPdP",
CURVE25519_PUBKEY_SIZE,
- session->next_crypto->curve25519_client_pubkey,
+ (size_t)CURVE25519_PUBKEY_SIZE, session->next_crypto->curve25519_client_pubkey,
CURVE25519_PUBKEY_SIZE,
- session->next_crypto->curve25519_server_pubkey);
+ (size_t)CURVE25519_PUBKEY_SIZE, session->next_crypto->curve25519_server_pubkey);
if (rc != SSH_OK) {
goto error;