mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
Fixed file descriptor leak in x509parse_crtpath()
This commit is contained in:
parent
a5943858d8
commit
003dbad250
2 changed files with 4 additions and 0 deletions
|
|
@ -2053,7 +2053,10 @@ cleanup:
|
|||
i = stat( entry_name, &sb );
|
||||
|
||||
if( i == -1 )
|
||||
{
|
||||
closedir( dir );
|
||||
return( POLARSSL_ERR_X509_FILE_IO_ERROR );
|
||||
}
|
||||
|
||||
if( !S_ISREG( sb.st_mode ) )
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue