mirror of
https://github.com/xcat2/xNBA.git
synced 2024-11-22 09:31:51 +00:00
[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 */
|
||||
if ( handler )
|
||||
rc = handler ( tls, iobuf->data, iob_len ( iobuf ) );
|
||||
rc = ( handler ? handler ( tls, iobuf->data, iob_len ( iobuf ) ) : 0 );
|
||||
free_iob ( iobuf );
|
||||
return rc;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user