diff options
Diffstat (limited to 'src/packet_crypt.c')
-rw-r--r-- | src/packet_crypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/packet_crypt.c b/src/packet_crypt.c index 57e3a444..1db33581 100644 --- a/src/packet_crypt.c +++ b/src/packet_crypt.c @@ -164,7 +164,7 @@ int ssh_packet_hmac_verify(ssh_session session, ssh_buffer buffer, seq = htonl(session->recv_seq); hmac_update(ctx, (unsigned char *) &seq, sizeof(uint32_t)); - hmac_update(ctx, ssh_buffer_get_rest(buffer), ssh_buffer_get_rest_len(buffer)); + hmac_update(ctx, ssh_buffer_get(buffer), ssh_buffer_get_rest_len(buffer)); hmac_final(ctx, hmacbuf, &len); #ifdef DEBUG_CRYPTO |