[master] 18266c8 Make field match failure ignore the record rather than assert

Martin Blix Grydeland martin at varnish-software.com
Tue Feb 25 15:58:40 CET 2014


commit 18266c8b46c0919e949e71df8897dbcf850b242a
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Tue Feb 25 13:12:21 2014 +0100

    Make field match failure ignore the record rather than assert

diff --git a/bin/varnishhist/varnishhist.c b/bin/varnishhist/varnishhist.c
index 4fc6866..1767db0 100644
--- a/bin/varnishhist/varnishhist.c
+++ b/bin/varnishhist/varnishhist.c
@@ -210,7 +210,8 @@ accumulate(struct VSL_data *vsl, struct VSL_transaction * const pt[],
 			if (tag == (unsigned)match_tag) {
 				i = sscanf(VSL_CDATA(tr->c->rec.ptr), format,
 				    &value);
-				assert(i == 1);
+				if (i != 1)
+					continue;
 			} else if (tag == SLT_Hit)
 				hit = 1;
 			if (tag != SLT_ReqEnd && value == -1)



More information about the varnish-commit mailing list