aboutsummaryrefslogtreecommitdiff
path: root/src/kdf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kdf.c')
-rw-r--r--src/kdf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kdf.c b/src/kdf.c
index 0e90e188..09644739 100644
--- a/src/kdf.c
+++ b/src/kdf.c
@@ -138,7 +138,7 @@ int sshkdf_derive_key(struct ssh_crypto_struct *crypto,
ssh_mac_update(ctx, key, key_len);
ssh_mac_update(ctx, crypto->secret_hash, crypto->digest_len);
ssh_mac_update(ctx, &letter, 1);
- ssh_mac_update(ctx, crypto->session_id, crypto->digest_len);
+ ssh_mac_update(ctx, crypto->session_id, crypto->session_id_len);
ssh_mac_final(digest, ctx);
if (requested_len < output_len) {