Skip to content

Commit

Permalink
Fix: crypt_data 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 45d777c commit 24bb5b4
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 @@ -1871,7 +1871,7 @@ crypt_data (lex_ctxt *lexic, int cipher, int mode, int crypt)
gcry_cipher_close (hd);
retc = alloc_typed_cell (CONST_DATA);
retc->x.str_val = result;
retc->size = strlen (result);
retc->size = resultlen;
return retc;
}

Expand Down

0 comments on commit 24bb5b4

Please sign in to comment.