Fixed use-after-free bug (config file handling)

This commit is contained in:
Andreas Eversberg 2019-08-14 08:39:18 +02:00
parent af4bcb1522
commit b9fe47e85d
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ int options_config_file(const char *config_file, int (*handle_options)(int short
PDEBUG(DOPTIONS, DEBUG_ERROR, "Given option '%s' in config file '%s' at line %d requires %d parameter(s), use '-h' for help!\n", opt, config_file, line, option->parameter_count);
return -EINVAL;
argv[0] = param;
argv[0] = strdup(param);
rc = handle_options(option->short_option, 0, argv);
if (rc <= 0)
goto done;