mirror of
https://github.com/ipxe/ipxe
synced 2025-12-18 10:30:23 +03:00
[tls] Fix potential memory leak
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -1749,6 +1749,7 @@ static int tls_new_record ( struct tls_session *tls, unsigned int type,
|
|||||||
list_del ( &iobuf->list );
|
list_del ( &iobuf->list );
|
||||||
if ( ! list_empty ( rx_data ) ) {
|
if ( ! list_empty ( rx_data ) ) {
|
||||||
DBGC ( tls, "TLS %p overlength non-data record\n", tls );
|
DBGC ( tls, "TLS %p overlength non-data record\n", tls );
|
||||||
|
free_iob ( iobuf );
|
||||||
return -EINVAL_NON_DATA;
|
return -EINVAL_NON_DATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user