aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-12-20 22:21:06 +0100
committerDaniel Stenberg <daniel@haxx.se>2010-12-20 22:22:02 +0100
commit9acac91960c2fc7157c1fc1060947f0ed029cd10 (patch)
treea1c24fc38638985a528ec8e7ea9c336256eb5650
parentaf54fbbcb582a03d2033691bbc0835b2bd4f0b7f (diff)
getparameter: add error check
if add2list() returns an error, bail out!
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index a38ad6217..7e2e34ece 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;