fixed invalid size used in zeroing buf_clear

This commit is contained in:
TLINDEN
2015-04-17 11:41:18 +02:00
parent 8d66d7e573
commit 8d552ddf43

View File

@@ -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(buf_cipher, ciphersize);
ucfree(buf_clear, ciphersize);
ucfree(buf_clear, ciphersize - PCP_CRYPTO_ADD);
if(recverify != NULL) {
/* decrypt the signature */