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 committed by Simon Butcher
parent a4c1c4b55d
commit f3a13486f4
2 changed files with 3 additions and 3 deletions

View File

@ -63,6 +63,8 @@ Changes
* Reduce RAM consumption during session renegotiation by not storing
the peer CRT chain and session ticket twice.
= mbed TLS 2.16.X branch released XXXX-XX-XX
Security
* Fix potential memory overread when performing an ECDSA signature
operation. The overread only happens with cryptographically low
@ -77,8 +79,6 @@ Security
ARMmbed/mbed-crypto#352
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.
= mbed TLS 2.16.4 branch released 2020-01-15

View File

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