mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 16:35:41 +01:00
Fixed file descriptor leak in x509parse_crtpath()
This commit is contained in:
parent
a5943858d8
commit
003dbad250
@ -46,6 +46,7 @@ Bugfix
|
|||||||
* Fixed parse error in ssl_parse_certificate_request()
|
* Fixed parse error in ssl_parse_certificate_request()
|
||||||
* zlib compression/decompression skipped on empty blocks
|
* zlib compression/decompression skipped on empty blocks
|
||||||
* Support for AIX header locations in net.c module
|
* Support for AIX header locations in net.c module
|
||||||
|
* Fixed file descriptor leaks
|
||||||
|
|
||||||
Security
|
Security
|
||||||
* RSA blinding on CRT operations to counter timing attacks
|
* RSA blinding on CRT operations to counter timing attacks
|
||||||
|
@ -2053,7 +2053,10 @@ cleanup:
|
|||||||
i = stat( entry_name, &sb );
|
i = stat( entry_name, &sb );
|
||||||
|
|
||||||
if( i == -1 )
|
if( i == -1 )
|
||||||
|
{
|
||||||
|
closedir( dir );
|
||||||
return( POLARSSL_ERR_X509_FILE_IO_ERROR );
|
return( POLARSSL_ERR_X509_FILE_IO_ERROR );
|
||||||
|
}
|
||||||
|
|
||||||
if( !S_ISREG( sb.st_mode ) )
|
if( !S_ISREG( sb.st_mode ) )
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user