getparameter: add error check

if add2list() returns an error, bail out!
This commit is contained in:
Daniel Stenberg 2010-12-20 22:21:06 +01:00
parent af54fbbcb5
commit 9acac91960

View File

@ -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;