mirror of
https://github.com/curl/curl.git
synced 2026-08-24 14:03:35 +03:00
tool_getparam: error out on missing -K file
Add test 411 to verify. Reported-by: Median Median Stride Bug: https://hackerone.com/reports/1542881 Closes #8731
This commit is contained in:
parent
ca94497a82
commit
a09a12806e
3 changed files with 48 additions and 4 deletions
|
|
@ -1948,9 +1948,10 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
|
|||
config->insecure_ok = toggle;
|
||||
break;
|
||||
case 'K': /* parse config file */
|
||||
if(parseconfig(nextarg, global))
|
||||
warnf(global, "error trying read config from the '%s' file\n",
|
||||
nextarg);
|
||||
if(parseconfig(nextarg, global)) {
|
||||
errorf(global, "cannot read config from '%s'\n", nextarg);
|
||||
return PARAM_READ_ERROR;
|
||||
}
|
||||
break;
|
||||
case 'l':
|
||||
config->dirlistonly = toggle; /* only list the names of the FTP dir */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue