]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[tls] Fix potential memory leak
authorMichael Brown <mcb30@ipxe.org>
Fri, 28 Sep 2012 09:54:07 +0000 (10:54 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 28 Sep 2012 09:54:07 +0000 (10:54 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/tls.c

index 52a833935a4ff8c741071a8db5d6c0cecaf9e61c..4ad131c87efda2261f57165bb3aab45ae98ccc7f 100644 (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;
        }