forked from wolfSSL/wolfssl
remove carriage return from CONF strings
This commit is contained in:
committed by
JacobBarthelmeh
parent
a2b7b44163
commit
5dcb1ba21f
@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user