From 5dcb1ba21f172d5dd0a11eee29d8bd92e354275c Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Wed, 22 Jun 2022 17:17:14 -0600 Subject: [PATCH] remove carriage return from CONF strings --- src/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf.c b/src/conf.c index eeace783e..b4cc0eb8b 100644 --- a/src/conf.c +++ b/src/conf.c @@ -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);