[4.1] 2794a74 Only ... hexdumps if they are longer than 8 digits

Lasse Karstensen lkarsten at varnish-software.com
Tue Jun 14 16:27:09 CEST 2016


commit 2794a7421f6337715537738bde54dc198b4ff736
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed May 11 17:37:01 2016 +0000

    Only ... hexdumps if they are longer than 8 digits

diff --git a/lib/libvarnish/vsb.c b/lib/libvarnish/vsb.c
index b710693..57549e7 100644
--- a/lib/libvarnish/vsb.c
+++ b/lib/libvarnish/vsb.c
@@ -517,7 +517,7 @@ VSB_quote(struct vsb *s, const void *v, int len, int how)
 			if (*w != 0x00)
 				break;
 		VSB_printf(s, "0x");
-		if (w == u + len) {
+		if (w == u + len && len > 4) {
 			VSB_printf(s, "0...0");
 		} else {
 			for (w = u; w < u + len; w++)



More information about the varnish-commit mailing list