r5384 - trunk/varnish-cache/lib/libvcl
phk at varnish-cache.org
phk at varnish-cache.org
Sat Oct 2 09:54:47 CEST 2010
Author: phk
Date: 2010-10-02 09:54:47 +0200 (Sat, 02 Oct 2010)
New Revision: 5384
Modified:
trunk/varnish-cache/lib/libvcl/vcc_expr.c
Log:
A missing error check
Modified: trunk/varnish-cache/lib/libvcl/vcc_expr.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_expr.c 2010-10-01 13:13:55 UTC (rev 5383)
+++ trunk/varnish-cache/lib/libvcl/vcc_expr.c 2010-10-02 07:54:47 UTC (rev 5384)
@@ -353,6 +353,7 @@
{
const char *p;
+ CHECK_OBJ_NOTNULL(*e, EXPR_MAGIC);
AN(fmt == STRING || fmt == STRING_LIST);
p = NULL;
@@ -991,6 +992,7 @@
t1 = tl->t;
vcc_expr0(tl, &e, fmt);
+ ERRCHK(tl);
if (fmt == STRING || fmt == STRING_LIST)
vcc_expr_tostring(&e, fmt);
if (!tl->err && fmt != e->fmt) {
More information about the varnish-commit
mailing list