From db89d8f04bb131bbf0e2b87eb9a1515076c893d3 Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Sun, 21 Mar 2021 23:23:23 +0100 Subject: [PATCH] APPS: fix load_certs_multifile() interpreting backslashes Fixes #14622 Reviewed-by: Shane Lontis (Merged from https://github.com/openssl/openssl/pull/14636) --- apps/lib/apps.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/lib/apps.c b/apps/lib/apps.c index 61b3ebc6de..69a98ecf37 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';