mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 12:00:56 +01:00
fixed invalid size used in zeroing buf_clear
This commit is contained in:
@@ -595,7 +595,7 @@ size_t pcp_decrypt_stream_sym(PCPCTX *ptx, Pcpstream *in, Pcpstream* out, byte *
|
|||||||
|
|
||||||
ucfree(in_buf, PCP_BLOCK_SIZE_IN);
|
ucfree(in_buf, PCP_BLOCK_SIZE_IN);
|
||||||
ucfree(buf_cipher, ciphersize);
|
ucfree(buf_cipher, ciphersize);
|
||||||
ucfree(buf_clear, ciphersize);
|
ucfree(buf_clear, ciphersize - PCP_CRYPTO_ADD);
|
||||||
|
|
||||||
if(recverify != NULL) {
|
if(recverify != NULL) {
|
||||||
/* decrypt the signature */
|
/* decrypt the signature */
|
||||||
|
|||||||
Reference in New Issue
Block a user