2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-11-22 09:31:51 +00:00

[tls] Fix potential memory leak

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2012-09-28 10:54:07 +01:00
parent 1e199c8260
commit d23db28488

View File

@ -1749,6 +1749,7 @@ static int tls_new_record ( struct tls_session *tls, unsigned int type,
list_del ( &iobuf->list );
if ( ! list_empty ( rx_data ) ) {
DBGC ( tls, "TLS %p overlength non-data record\n", tls );
free_iob ( iobuf );
return -EINVAL_NON_DATA;
}