diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2014-08-25 12:23:17 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-08-25 12:23:17 +0200 |
commit | 86294ad3ea506dd86503ad51cb03a33f6478f293 (patch) | |
tree | 6f9637a689c71cb914c260bac07aaa9d7dc87389 /src | |
parent | 173994786b751899fc3b158901383e99a55ce97d (diff) | |
download | libssh-86294ad3ea506dd86503ad51cb03a33f6478f293.tar.gz libssh-86294ad3ea506dd86503ad51cb03a33f6478f293.tar.xz libssh-86294ad3ea506dd86503ad51cb03a33f6478f293.zip |
dh: Fix packing a pointer into the buffer.
Thanks to Giovanni Panozzo <giovanni@panozzo.it>.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/dh.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |