[master] 1f746ae Zero the cli_task_priv after use.

Poul-Henning Kamp phk at FreeBSD.org
Mon Sep 12 12:04:14 CEST 2016


commit 1f746aeacb3b0ad463e30b035727da93e1486349
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Sep 12 10:03:15 2016 +0000

    Zero the cli_task_priv after use.

diff --git a/bin/varnishd/cache/cache_vrt_priv.c b/bin/varnishd/cache/cache_vrt_priv.c
index 44d95d3..7bb19d7 100644
--- a/bin/varnishd/cache/cache_vrt_priv.c
+++ b/bin/varnishd/cache/cache_vrt_priv.c
@@ -101,6 +101,7 @@ VRTPRIV_dynamic_kill(struct vrt_privs *privs, uintptr_t id)
 	if (privs == NULL && id == 0) {
 		ASSERT_CLI();
 		VRT_priv_fini(&cli_task_priv);
+		memset(&cli_task_priv, 0, sizeof cli_task_priv);
 		return;
 	}
 	CHECK_OBJ_NOTNULL(privs, VRT_PRIVS_MAGIC);



More information about the varnish-commit mailing list