[master] fe465df Do a NULL check on the VSC pointer

Poul-Henning Kamp phk at FreeBSD.org
Sun Jun 11 23:46:05 CEST 2017


commit fe465df7f94e355eb10d38a033460528846b662f
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Sun Jun 11 21:45:29 2017 +0000

    Do a NULL check on the VSC pointer

diff --git a/bin/varnishtest/vtc_varnish.c b/bin/varnishtest/vtc_varnish.c
index 7014b8a..114713e 100644
--- a/bin/varnishtest/vtc_varnish.c
+++ b/bin/varnishtest/vtc_varnish.c
@@ -876,6 +876,7 @@ do_stat_cb(void *priv, const struct VSC_point * const pt)
 		return(0);
 
 	AZ(strcmp(pt->desc->ctype, "uint64_t"));
+	AN(pt->ptr);
 	sp->val = *pt->ptr;
 	return (1);
 }



More information about the varnish-commit mailing list