[master] e50a4a3cb Null check, hat trick

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Wed Feb 6 17:37:08 UTC 2019


commit e50a4a3cbfa87c5b923c0b18c9ed3fbf88dc3553
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Wed Feb 6 18:35:43 2019 +0100

    Null check, hat trick

diff --git a/bin/varnishd/cache/cache_esi_deliver.c b/bin/varnishd/cache/cache_esi_deliver.c
index 22d0b0855..59a138bb2 100644
--- a/bin/varnishd/cache/cache_esi_deliver.c
+++ b/bin/varnishd/cache/cache_esi_deliver.c
@@ -282,6 +282,7 @@ ved_vdp_esi_fini(struct req *req, void **priv)
 	struct ecx *ecx;
 
 	(void)req;
+	AN(priv);
 	CAST_OBJ_NOTNULL(ecx, *priv, ECX_MAGIC);
 	FREE_OBJ(ecx);
 	*priv = NULL;


More information about the varnish-commit mailing list