aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tool_getparam.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tool_getparam.c b/src/tool_getparam.c
index 6cb394139..f64208a2b 100644
--- a/src/tool_getparam.c
+++ b/src/tool_getparam.c
@@ -1626,13 +1626,15 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */
else
err = add2list(&config->headers, h);
if(err)
- return err;
+ break;
h = strtok(NULL, "\r\n");
}
free(string);
}
if(!use_stdin)
fclose(file);
+ if(err)
+ return err;
}
}
else {