Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[tls] Fix uninitialised variable
Reported-by: Christian Hesse <list@eworm.de>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Sep 28, 2012
1 parent 72db146 commit 1e199c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/net/tls.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1e199c8

Please sign in to comment.