getparameter: add error check
if add2list() returns an error, bail out!
This commit is contained in:
parent
af54fbbcb5
commit
9acac91960
@ -2450,6 +2450,8 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
|
||||
break;
|
||||
case 'F': /* --resolve */
|
||||
err = add2list(&config->resolve, nextarg);
|
||||
if(err)
|
||||
return err;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user