diff options
author | Michael Brown | 2012-09-28 11:54:07 +0200 |
---|---|---|
committer | Michael Brown | 2012-09-28 11:54:07 +0200 |
commit | d23db2848813a9d872e1d71272e7f41df7d0d01c (patch) | |
tree | 7e7563c5b5d1c63cda333db4e2b1b56a82523d88 /src/net | |
parent | [tls] Fix uninitialised variable (diff) | |
download | ipxe-d23db2848813a9d872e1d71272e7f41df7d0d01c.tar.gz ipxe-d23db2848813a9d872e1d71272e7f41df7d0d01c.tar.xz ipxe-d23db2848813a9d872e1d71272e7f41df7d0d01c.zip |
[tls] Fix potential memory leak
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/tls.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net/tls.c b/src/net/tls.c index 52a83393..4ad131c8 100644 --- a/src/net/tls.c +++ b/src/net/tls.c @@ -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; } |