diff options
author | Michael Brown <mcb30@ipxe.org> | 2012-09-28 10:52:17 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2012-09-28 10:52:17 +0100 |
commit | 1e199c82601a9182752017a5fd36d297ed0dc6e2 (patch) | |
tree | c60c6e84f02e43d43a48199e95d93d14625157ed /src/net | |
parent | 72db14640c2a9eac0ba53baa955b180f1f4b9c2f (diff) | |
download | ipxe-1e199c82601a9182752017a5fd36d297ed0dc6e2.tar.gz |
[tls] Fix uninitialised variable
Reported-by: Christian Hesse <list@eworm.de>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/tls.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/tls.c b/src/net/tls.c index 45b7e525..52a83393 100644 --- a/src/net/tls.c +++ b/src/net/tls.c @@ -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; } |