Skip to content

Commit fe671f7

Browse files
Merge pull request #7435 from SparkiDev/ssl_misc_fixup
ssl_misc.c: wolfssl_file_len() protection
2 parents ef15310 + 593cb77 commit fe671f7

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/ssl_misc.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,7 @@ static int wolfssl_read_bio(WOLFSSL_BIO* bio, char** data, int* dataSz,
208208
#endif /* OPENSSL_EXTRA && !WOLFCRYPT_ONLY */
209209

210210
#if (defined(OPENSSL_EXTRA) || defined(PERSIST_CERT_CACHE) || \
211-
(!defined(NO_CERTS) && (!defined(NO_WOLFSSL_CLIENT) || \
212-
!defined(WOLFSSL_NO_CLIENT_AUTH)))) && !defined(WOLFCRYPT_ONLY) && \
213-
!defined(NO_FILESYSTEM)
211+
!defined(NO_CERTS)) && !defined(WOLFCRYPT_ONLY) && !defined(NO_FILESYSTEM)
214212
/* Read all the data from a file.
215213
*
216214
* @param [in] fp File pointer to read with.

0 commit comments

Comments
 (0)