[master] f53ff46 Only parse ReqAcct once

Martin Blix Grydeland martin at varnish-software.com
Tue May 27 13:06:17 CEST 2014


commit f53ff463561ca6e4c79a820852550453fb0dac5b
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Tue May 27 13:02:55 2014 +0200

    Only parse ReqAcct once

diff --git a/bin/varnishncsa/varnishncsa.c b/bin/varnishncsa/varnishncsa.c
index 5aa0361..16e9e30 100644
--- a/bin/varnishncsa/varnishncsa.c
+++ b/bin/varnishncsa/varnishncsa.c
@@ -792,9 +792,11 @@ dispatch_f(struct VSL_data *vsl, struct VSL_transaction * const pt[],
 				frag_line(b, e, &CTX.frag[F_s]);
 				break;
 			case SLT_ReqAcct:
-				frag_fields(b, e, 5, &CTX.frag[F_b], 0, NULL);
-				frag_fields(b, e, 3, &CTX.frag[F_I], 0, NULL);
-				frag_fields(b, e, 6, &CTX.frag[F_O], 0, NULL);
+				frag_fields(b, e,
+				    3, &CTX.frag[F_I],
+				    5, &CTX.frag[F_b],
+				    6, &CTX.frag[F_O],
+				    0, NULL);
 				break;
 			case SLT_Timestamp:
 				if (isprefix(b, "Start:", e, &p)) {



More information about the varnish-commit mailing list