[master] 2b824d2 Allow newlines in long strings to sendhex

Martin Blix Grydeland martin at varnish-software.com
Thu Jun 15 15:44:05 CEST 2017


commit 2b824d2522438c04514bdf065bf4b7bf577cebe4
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Thu Jun 15 15:16:46 2017 +0200

    Allow newlines in long strings to sendhex

diff --git a/bin/varnishtest/vtc_subr.c b/bin/varnishtest/vtc_subr.c
index eb6223f..2c1439a 100644
--- a/bin/varnishtest/vtc_subr.c
+++ b/bin/varnishtest/vtc_subr.c
@@ -48,7 +48,7 @@ vtc_hex_to_bin(struct vtclog *vl, const char *arg)
 	vsb = VSB_new_auto();
 	AN(vsb);
 	for (; *arg != '\0'; arg++) {
-		if (vct_issp(*arg))
+		if (vct_issp(*arg) || *arg == '\n')
 			continue;
 		c = (uint8_t)*arg;
 		if (c >= '0' && c <= '9')



More information about the varnish-commit mailing list