--------
In message <[email protected]>, Poul-Henning Kamp writes:


Can you try this patch ?

(NB: copy&pasted, you probably need to apply by hand...)

(PS: and place open a ticket for this bug)

diff --git a/lib/libvcl/vcc_expr.c b/lib/libvcl/vcc_expr.c
index 72c26a9..5223392 100644
--- a/lib/libvcl/vcc_expr.c
+++ b/lib/libvcl/vcc_expr.c
@@ -847,6 +847,10 @@ vcc_expr_add(struct vcc *tl, struct expr **e, enum var_type
                ERRCHK(tl);
                if (tk->tok == '-' && (*e)->fmt == TIME && e2->fmt == TIME) {
                        /* OK */
+               } else if (tk->tok == '+' &&
+                   (*e)->fmt == TIME && e2->fmt == DURATION) {
+                       f2 = TIME;
+                       /* OK */
                } else if (tk->tok == '-' &&
                    (*e)->fmt == BYTES && e2->fmt == BYTES) {
                        /* OK */


-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[email protected]         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

_______________________________________________
varnish-dev mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev

Reply via email to