Browse Source

[tls] Fix potential memory leak

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 years ago
parent
commit
d23db28488
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/net/tls.c

+ 1
- 0
src/net/tls.c View File

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

Loading…
Cancel
Save