remove carriage return from CONF strings

This commit is contained in:
Jacob Barthelmeh
2022-06-22 17:17:14 -06:00
committed by JacobBarthelmeh
parent a2b7b44163
commit 5dcb1ba21f

View File

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