Skip to content

Commit 1e199c8

Browse files
committedSep 28, 2012
[tls] Fix uninitialised variable
Reported-by: Christian Hesse <list@eworm.de> Signed-off-by: Michael Brown <mcb30@ipxe.org>
1 parent 72db146 commit 1e199c8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/net/tls.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -1773,8 +1773,7 @@ static int tls_new_record ( struct tls_session *tls, unsigned int type,
17731773
}
17741774

17751775
/* Handle record and free I/O buffer */
1776-
if ( handler )
1777-
rc = handler ( tls, iobuf->data, iob_len ( iobuf ) );
1776+
rc = ( handler ? handler ( tls, iobuf->data, iob_len ( iobuf ) ) : 0 );
17781777
free_iob ( iobuf );
17791778
return rc;
17801779
}

0 commit comments

Comments
 (0)