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:
Gilles Peskine 2020-01-21 17:39:52 +01:00
parent b08e44fda7
commit 2ac4d86040

View file

@ -619,6 +619,7 @@ static int nss_keylog_export( void *p_expkey,
if( fwrite( nss_keylog_line, 1, len, f ) != len )
{
ret = -1;
fclose( f );
goto exit;
}