[master] bd3b2dc Assert that we always have a transient storage.

Poul-Henning Kamp phk at FreeBSD.org
Fri May 5 21:53:05 CEST 2017


commit bd3b2dc29fdda6657d9a63c1d5781e61f58e41ad
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Fri May 5 19:26:02 2017 +0000

    Assert that we always have a transient storage.

diff --git a/bin/varnishd/storage/mgt_stevedore.c b/bin/varnishd/storage/mgt_stevedore.c
index 1ddf8a5..da3f4a1 100644
--- a/bin/varnishd/storage/mgt_stevedore.c
+++ b/bin/varnishd/storage/mgt_stevedore.c
@@ -225,5 +225,6 @@ STV_Config_Transient(void)
 	VCLS_AddFunc(mgt_cls, MCF_AUTH, cli_stv);
 	if (stv_transient == NULL)
 		STV_Config(TRANSIENT_STORAGE "=malloc");
+	AN(stv_transient);
 	VTAILQ_INSERT_TAIL(&stevedores, stv_transient, list);
 }



More information about the varnish-commit mailing list