formating and sanity check on pointer with test case

This commit is contained in:
Jacob Barthelmeh
2018-08-01 11:57:36 -06:00
parent cb756397b3
commit ce5e787afc

View File

@@ -6587,8 +6587,10 @@ Aes dec;
#endif
if (result != 0)
return -4702;
if (cipher != NULL) {
if (XMEMCMP(cipher, resultC, cipherSz))
return -4703;
}
if (XMEMCMP(tag, resultT, tagSz))
return -4704;
@@ -6606,8 +6608,10 @@ Aes dec;
#endif
if (result != 0)
return -4706;
if (plain != NULL) {
if (XMEMCMP(plain, resultP, plainSz))
return -4707;
}
wc_AesFree(&dec);
#endif /* HAVE_AES_DECRYPT */