[master] 8a986ce Fix 'varnishstat -l' segmentation fault.
Dag Haavi Finstad
daghf at varnish-software.com
Tue Mar 25 15:28:31 CET 2014
commit 8a986ce96e1396edb80fdd538d2045ca2dd2d115
Author: Dag Haavi Finstad <daghf at varnish-software.com>
Date: Tue Mar 25 15:08:29 2014 +0100
Fix 'varnishstat -l' segmentation fault.
Fixes: #1450
diff --git a/bin/varnishstat/varnishstat.c b/bin/varnishstat/varnishstat.c
index 10f6d51..31c0a1b 100644
--- a/bin/varnishstat/varnishstat.c
+++ b/bin/varnishstat/varnishstat.c
@@ -210,6 +210,10 @@ do_list_cb(void *priv, const struct VSC_point * const pt)
const struct VSC_section * sec;
(void)priv;
+
+ if (pt == NULL)
+ return (0);
+
sec = pt->section;
i = 0;
if (strcmp(sec->fantom->type, ""))
More information about the varnish-commit
mailing list