Skip to content

Commit

Permalink
[tls] Fix potential memory leak
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Sep 28, 2012
1 parent 1e199c8 commit d23db28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/net/tls.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit d23db28

Please sign in to comment.