Skip to content

Commit

Permalink
Remove vestigial return value from nss_keylog_export
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Rodgman <[email protected]>
  • Loading branch information
daverodgman committed Jun 18, 2021
1 parent 2fdede8 commit b62ad8f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions programs/ssl/ssl_test_common_source.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ void nss_keylog_export( void *p_expkey,
size_t const client_random_len = 32;
size_t len = 0;
size_t j;
int ret = 0;

/* We're only interested in the TLS 1.2 master secret */
if( secret_type != MBEDTLS_SSL_KEY_EXPORT_TLS12_MASTER_SECRET )
Expand Down Expand Up @@ -100,13 +99,11 @@ void nss_keylog_export( void *p_expkey,

if( ( f = fopen( opt.nss_keylog_file, "a" ) ) == NULL )
{
ret = -1;
goto exit;
}

if( fwrite( nss_keylog_line, 1, len, f ) != len )
{
ret = -1;
fclose( f );
goto exit;
}
Expand Down

0 comments on commit b62ad8f

Please sign in to comment.