Skip to content

Commit bdea01a

Browse files
committed
src/x509.c: in loadX509orX509REQFromPemBio(), fix an identicalInnerCondition.
1 parent 9102df3 commit bdea01a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/x509.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13039,9 +13039,7 @@ static WOLFSSL_X509 *loadX509orX509REQFromPemBio(WOLFSSL_BIO *bp,
1303913039
if (i < pemSz && pem[i-1] == '\r') {
1304013040
/* found \r , Windows line ending is \r\n so try to read one
1304113041
* more byte for \n, ignoring return value */
13042-
if (i < pemSz) {
13043-
(void)wolfSSL_BIO_read(bp, (char *)&pem[i++], 1);
13044-
}
13042+
(void)wolfSSL_BIO_read(bp, (char *)&pem[i++], 1);
1304513043
}
1304613044
}
1304713045
break;

0 commit comments

Comments
 (0)