mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-05 22:19:40 +00:00
APPS: fix load_certs_multifile() interpreting backslashes
Fixes #14622 Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/14636)
This commit is contained in:
parent
251c48183b
commit
db89d8f04b
@ -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 */
|
char *next_item(char *opt) /* in list separated by comma and/or space */
|
||||||
{
|
{
|
||||||
/* advance to separator (comma or whitespace), if any */
|
/* advance to separator (comma or whitespace), if any */
|
||||||
while (*opt != ',' && !isspace(*opt) && *opt != '\0') {
|
while (*opt != ',' && !isspace(*opt) && *opt != '\0')
|
||||||
if (*opt == '\\' && opt[1] != '\0')
|
|
||||||
/* skip and unescape '\' escaped char */
|
|
||||||
memmove(opt, opt + 1, strlen(opt));
|
|
||||||
opt++;
|
opt++;
|
||||||
}
|
|
||||||
if (*opt != '\0') {
|
if (*opt != '\0') {
|
||||||
/* terminate current item */
|
/* terminate current item */
|
||||||
*opt++ = '\0';
|
*opt++ = '\0';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user