[master] 5b17fb2 Fix logexp record length to account for terminating zero.

Martin Blix Grydeland martin at varnish-software.com
Mon Mar 31 11:28:00 CEST 2014


commit 5b17fb212b68dcbae35a6e693bb80d5949730313
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Sun Mar 30 12:31:30 2014 +0200

    Fix logexp record length to account for terminating zero.
    
    This makes it possible to anchor regex's at the end again.

diff --git a/bin/varnishtest/vtc_logexp.c b/bin/varnishtest/vtc_logexp.c
index 92fa5ae..e6adae7 100644
--- a/bin/varnishtest/vtc_logexp.c
+++ b/bin/varnishtest/vtc_logexp.c
@@ -196,7 +196,7 @@ logexp_dispatch(struct VSL_data *vsl, struct VSL_transaction * const pt[],
 			vxid = VSL_ID(t->c->rec.ptr);
 			tag = VSL_TAG(t->c->rec.ptr);
 			data = VSL_CDATA(t->c->rec.ptr);
-			len = VSL_LEN(t->c->rec.ptr);
+			len = VSL_LEN(t->c->rec.ptr) - 1;
 
 			if (tag == SLT__Batch)
 				continue;



More information about the varnish-commit mailing list