From: Dr. David von Oheimb Date: Sun, 21 Mar 2021 22:23:23 +0000 (+0100) Subject: APPS: fix load_certs_multifile() interpreting backslashes X-Git-Tag: openssl-3.0.0-alpha14~172 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=db89d8f04bb131bbf0e2b87eb9a1515076c893d3;p=thirdparty%2Fopenssl.git APPS: fix load_certs_multifile() interpreting backslashes Fixes #14622 Reviewed-by: Shane Lontis (Merged from https://github.com/openssl/openssl/pull/14636) --- diff --git a/apps/lib/apps.c b/apps/lib/apps.c index 61b3ebc6dec..69a98ecf37c 100644 --- a/apps/lib/apps.c +++ b/apps/lib/apps.c @@ -641,12 +641,8 @@ void* app_malloc(int sz, const char *what) char *next_item(char *opt) /* in list separated by comma and/or space */ { /* advance to separator (comma or whitespace), if any */ - while (*opt != ',' && !isspace(*opt) && *opt != '\0') { - if (*opt == '\\' && opt[1] != '\0') - /* skip and unescape '\' escaped char */ - memmove(opt, opt + 1, strlen(opt)); + while (*opt != ',' && !isspace(*opt) && *opt != '\0') opt++; - } if (*opt != '\0') { /* terminate current item */ *opt++ = '\0';