r5383 - branches/2.1/varnish-cache/lib/libvarnishapi

tfheen at varnish-cache.org tfheen at varnish-cache.org
Fri Oct 1 15:13:56 CEST 2010


Author: tfheen
Date: 2010-10-01 15:13:55 +0200 (Fri, 01 Oct 2010)
New Revision: 5383

Modified:
   branches/2.1/varnish-cache/lib/libvarnishapi/shmlog.c
Log:
More regex matching fixing

This is not a merge since this is fixed by a rewrite in trunk


Modified: branches/2.1/varnish-cache/lib/libvarnishapi/shmlog.c
===================================================================
--- branches/2.1/varnish-cache/lib/libvarnishapi/shmlog.c	2010-10-01 11:10:21 UTC (rev 5382)
+++ branches/2.1/varnish-cache/lib/libvarnishapi/shmlog.c	2010-10-01 13:13:55 UTC (rev 5383)
@@ -341,7 +341,7 @@
 		if (vd->regincl != NULL) {
 			i = VRE_exec(vd->regincl,
 				     (char *)p + SHMLOG_DATA,
-				     SHMLOG_LEN(p) - SHMLOG_DATA, /* Length */
+				     SHMLOG_LEN(p), /* Length */
 				     0, 0, NULL, 0);
 			if (i == VRE_ERROR_NOMATCH)
 				continue;
@@ -349,7 +349,7 @@
 		if (vd->regexcl != NULL) {
 			i = VRE_exec(vd->regexcl,
 				     (char *)p + SHMLOG_DATA,
-				     SHMLOG_LEN(p) - SHMLOG_DATA, /* Length */
+				     SHMLOG_LEN(p), /* Length */
 				     0, 0, NULL, 0);
 			if (i != VRE_ERROR_NOMATCH)
 				continue;




More information about the varnish-commit mailing list