Revert "Merge pull request #3012 from Patater/dev/jp-bennett/development-2.16"

This reverts commit 7550e857bf, reversing
changes made to d0c2575324.

stat() will never return S_IFLNK as the file type, as stat()
explicitly follows symlinks.

Fixes #3005.
This commit is contained in:
Janos Follath 2020-02-04 14:42:15 +00:00
parent 82ebf511e9
commit cabf0eed66
2 changed files with 1 additions and 3 deletions

View File

@ -16,8 +16,6 @@ Security
ARMmbed/mbed-crypto#352 ARMmbed/mbed-crypto#352
Bugfix Bugfix
* Allow loading symlinked certificates. Fixes #3005. Reported and fixed
by Jonathan Bennett <JBennett@incomsystems.biz> via #3008.
* Fix an unchecked call to mbedtls_md() in the x509write module. * Fix an unchecked call to mbedtls_md() in the x509write module.
= mbed TLS 2.16.4 branch released 2020-01-15 = mbed TLS 2.16.4 branch released 2020-01-15

View File

@ -1366,7 +1366,7 @@ cleanup:
goto cleanup; goto cleanup;
} }
if( !( S_ISREG( sb.st_mode ) || S_ISLNK( sb.st_mode ) ) ) if( !S_ISREG( sb.st_mode ) )
continue; continue;
// Ignore parse errors // Ignore parse errors