fixed invalid malloc od pad_clear variable

This commit is contained in:
TLINDEN
2013-11-16 14:52:58 +01:00
parent 4ac23de3c7
commit b9255e80c3

View File

@@ -58,7 +58,7 @@ int pcp_sodium_verify_mac(unsigned char **cleartext, unsigned char* message,
pcp_pad_prepend(&pad_cipher, message, crypto_secretbox_BOXZEROBYTES, messagesize); pcp_pad_prepend(&pad_cipher, message, crypto_secretbox_BOXZEROBYTES, messagesize);
pad_clear = (unsigned char *)ucmalloc((crypto_secretbox_BOXZEROBYTES + messagesize)); pad_clear = (unsigned char *)ucmalloc((crypto_secretbox_ZEROBYTES + messagesize));
if (crypto_secretbox_open(pad_clear, if (crypto_secretbox_open(pad_clear,
pad_cipher, pad_cipher,