Commit 61c6e239 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Return in main-thread if macro expansion fails



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4768 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 1f01627e
......@@ -307,6 +307,8 @@ parse_string(char *buf, const struct cmds *cmd, void *priv, struct vtclog *vl)
if (NULL == strstr(token_s[tn], "${"))
continue;
token_exp[tn] = macro_expand(vl, token_s[tn]);
if (vtc_error)
return;
token_s[tn] = vsb_data(token_exp[tn]);
token_e[tn] = strchr(token_s[tn], '\0');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment