[tls] Fix uninitialised variable
Reported-by: Christian Hesse <list@eworm.de> Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
72db14640c
commit
1e199c8260
|
@ -1773,8 +1773,7 @@ static int tls_new_record ( struct tls_session *tls, unsigned int type,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Handle record and free I/O buffer */
|
/* Handle record and free I/O buffer */
|
||||||
if ( handler )
|
rc = ( handler ? handler ( tls, iobuf->data, iob_len ( iobuf ) ) : 0 );
|
||||||
rc = handler ( tls, iobuf->data, iob_len ( iobuf ) );
|
|
||||||
free_iob ( iobuf );
|
free_iob ( iobuf );
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue