Repository navigation
Commit 04d4feb
committed
tests: free the AES context on a GCM key failure
test_DoReceive_AeadTagFailure() marks decryptCipher initialized and
sets its cipher type as soon as wc_AesInit() succeeds, so a later
wc_AesGcmSetKey() failure still leaves wolfSSH_free() a context that
CipherClear() will free. Matches what CipherSetKey() does in the
library.
- give the key-set failure its own result code, so the split reports
which of the two calls failed1 parent 49975da commit 04d4feb
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1827 | 1827 | | |
1828 | 1828 | | |
1829 | 1829 | | |
1830 | | - | |
1831 | | - | |
| 1830 | + | |
| 1831 | + | |
1832 | 1832 | | |
1833 | 1833 | | |
1834 | 1834 | | |
| 1835 | + | |
| 1836 | + | |
1835 | 1837 | | |
1836 | 1838 | | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
1837 | 1843 | | |
1838 | 1844 | | |
1839 | 1845 | | |
| |||
0 commit comments