mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 19:07:28 +00:00
trans, not recv for macsize
--HG-- extra : convert_revision : 39c4f7320b3a10ef7ef5a41406fe014cc9040ee9
This commit is contained in:
parent
cebbc4e2b7
commit
c804883350
2
packet.c
2
packet.c
@ -531,7 +531,7 @@ static void writemac(buffer * outputbuffer, buffer * clearwritebuf) {
|
|||||||
|
|
||||||
TRACE(("enter writemac"))
|
TRACE(("enter writemac"))
|
||||||
|
|
||||||
macsize = ses.keys->recv_algo_mac->hashsize;
|
macsize = ses.keys->trans_algo_mac->hashsize;
|
||||||
if (macsize > 0) {
|
if (macsize > 0) {
|
||||||
/* calculate the mac */
|
/* calculate the mac */
|
||||||
if (hmac_init(&hmac,
|
if (hmac_init(&hmac,
|
||||||
|
Loading…
Reference in New Issue
Block a user