remove carriage return from CONF strings

pull/5277/head
Jacob Barthelmeh 2022-06-22 17:17:14 -06:00 committed by JacobBarthelmeh
parent a2b7b44163
commit 5dcb1ba21f
1 changed files with 1 additions and 1 deletions

View File

@ -926,7 +926,7 @@ int wolfSSL_NCONF_load(WOLFSSL_CONF *conf, const char *file, long *eline)
value = idx;
/* Find end of value */
idx = maxIdx-1;
while (idx >= value && (*idx == ' ' || *idx == '\t'))
while (idx >= value && (*idx == ' ' || *idx == '\t' || *idx == '\r'))
idx--;
valueLen = (int)(idx - value + 1);