Commit e21a9d31 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

A missing error check



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5384 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 46072e51
...@@ -353,6 +353,7 @@ vcc_expr_tostring(struct expr **e, enum var_type fmt) ...@@ -353,6 +353,7 @@ vcc_expr_tostring(struct expr **e, enum var_type fmt)
{ {
const char *p; const char *p;
CHECK_OBJ_NOTNULL(*e, EXPR_MAGIC);
AN(fmt == STRING || fmt == STRING_LIST); AN(fmt == STRING || fmt == STRING_LIST);
p = NULL; p = NULL;
...@@ -991,6 +992,7 @@ vcc_Expr(struct vcc *tl, enum var_type fmt) ...@@ -991,6 +992,7 @@ vcc_Expr(struct vcc *tl, enum var_type fmt)
t1 = tl->t; t1 = tl->t;
vcc_expr0(tl, &e, fmt); vcc_expr0(tl, &e, fmt);
ERRCHK(tl);
if (fmt == STRING || fmt == STRING_LIST) if (fmt == STRING || fmt == STRING_LIST)
vcc_expr_tostring(&e, fmt); vcc_expr_tostring(&e, fmt);
if (!tl->err && fmt != e->fmt) { if (!tl->err && fmt != e->fmt) {
......
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