Fix file leak in test program
A similar bug was fixed earlier in ssl_server2, but we missed the fix in ssl_client2.
This commit is contained in:
parent
b08e44fda7
commit
2ac4d86040
1 changed files with 1 additions and 0 deletions
|
@ -619,6 +619,7 @@ static int nss_keylog_export( void *p_expkey,
|
||||||
if( fwrite( nss_keylog_line, 1, len, f ) != len )
|
if( fwrite( nss_keylog_line, 1, len, f ) != len )
|
||||||
{
|
{
|
||||||
ret = -1;
|
ret = -1;
|
||||||
|
fclose( f );
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue