Skip to content

Commit

Permalink
Fix: smb3kdf set the correct size
Browse files Browse the repository at this point in the history
  • Loading branch information
Kraemii committed May 19, 2022
1 parent 24bb5b4 commit 6773b16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nasl/nasl_crypto2.c
Original file line number Diff line number Diff line change
Expand Up @@ -2095,7 +2095,7 @@ nasl_smb3kdf (lex_ctxt *lexic)
return NULL;
}

resultlen = lvalue;
resultlen = lvalue / 8;
result = g_malloc0 (resultlen);
if ((error = gcry_mac_read (hd, result, &resultlen)))
{
Expand Down

0 comments on commit 6773b16

Please sign in to comment.