diff options
author | Michael Brown <mcb30@ipxe.org> | 2024-01-31 13:49:35 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2024-01-31 13:49:35 +0000 |
commit | 0cc0f47443ef9711775a748c2b0fb40e38643733 (patch) | |
tree | 09559533495ff0869428374f0feb5292d27eb257 /src/include/ipxe/if_ether.h | |
parent | 65d69d33da445afc7ff56857af1881cf73666be4 (diff) | |
download | ipxe-0cc0f47443ef9711775a748c2b0fb40e38643733.tar.gz |
[tls] Tidy up error handling flow in tls_send_plaintext()
Coverity reported that tls_send_plaintext() failed to check the return
status from tls_generate_random(), which could potentially result in
uninitialised random data being used as the block initialisation
vector (instead of intentionally random data).
Add the missing return status check, and separate out the error
handling code paths (since on the successful exit code path there will
be no need to free either the plaintext or the ciphertext anyway).
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/if_ether.h')
0 files changed, 0 insertions, 0 deletions