[master] 013daf9 Fix query test reversal bug

Martin Blix Grydeland martin at varnish-cache.org
Thu Jun 13 12:41:24 CEST 2013


commit 013daf9841c12024dc634ffdfd1bacfa4f8d6088
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Tue Jun 11 15:35:51 2013 +0200

    Fix query test reversal bug

diff --git a/lib/libvarnishapi/vsl_dispatch.c b/lib/libvarnishapi/vsl_dispatch.c
index 8256352..79fb02a 100644
--- a/lib/libvarnishapi/vsl_dispatch.c
+++ b/lib/libvarnishapi/vsl_dispatch.c
@@ -749,7 +749,7 @@ vslq_callback(struct VSLQ *vslq, struct vtx *vtx, VSLQ_dispatch_f *func,
 	ptrans[i] = NULL;
 
 	/* Query test goes here */
-	if (vslq->query != NULL && vslq_runquery(vslq->query, ptrans))
+	if (vslq->query != NULL && !vslq_runquery(vslq->query, ptrans))
 		return (0);
 
 	/* Callback */
@@ -859,7 +859,7 @@ vslq_raw(struct VSLQ *vslq, VSLQ_dispatch_f *func, void *priv)
 		trans.vxid = VSL_ID(c->rec.ptr);
 
 		/* Query check goes here */
-		if (vslq->query != NULL && vslq_runquery(vslq->query, ptrans))
+		if (vslq->query != NULL && !vslq_runquery(vslq->query, ptrans))
 			continue;
 
 		/* Callback */



More information about the varnish-commit mailing list