[5.2] 042de50 Missing assert

PÃ¥l Hermunn Johansen hermunn at varnish-software.com
Fri Sep 15 11:17:31 UTC 2017


commit 042de503a7b3fad3efab691f36e8a4e97c159981
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Sep 14 20:37:11 2017 +0000

    Missing assert

diff --git a/bin/varnishd/mgt/mgt_param.c b/bin/varnishd/mgt/mgt_param.c
index bba58b3..dc25ea4 100644
--- a/bin/varnishd/mgt/mgt_param.c
+++ b/bin/varnishd/mgt/mgt_param.c
@@ -624,6 +624,7 @@ MCF_DumpRstParam(void)
 			t1 = strchr(p, '\t');
 			if (t1 != NULL && t1 < q) {
 				t2 = strchr(t1 + 1, '\t');
+				AN(t2);
 				printf("\n\t*");
 				(void)fwrite(t1 + 1, (t2 - 1) - t1, 1, stdout);
 				printf("*\n\t\t");


More information about the varnish-commit mailing list