[master] 549c706 Add back a couple of AN()'s that I was a bit too fast in commenting out.

Poul-Henning Kamp phk at varnish-cache.org
Thu Feb 17 22:00:12 CET 2011


commit 549c7061eae6918668f1094dae721a8c54365d6f
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Feb 17 20:59:54 2011 +0000

    Add back a couple of AN()'s that I was a bit too fast in commenting out.

diff --git a/bin/varnishd/cache_esi_fetch.c b/bin/varnishd/cache_esi_fetch.c
index 5d61b62..385ee1c 100644
--- a/bin/varnishd/cache_esi_fetch.c
+++ b/bin/varnishd/cache_esi_fetch.c
@@ -310,8 +310,8 @@ vfp_esi_begin(struct sess *sp, size_t estimate)
 		VEP_Init(sp, NULL);
 	} else if (sp->wrk->is_gunzip && sp->wrk->do_gzip) {
 		ALLOC_OBJ(vef, VEF_MAGIC);
+		AN(vef);
 		//vef = (void*)WS_Alloc(sp->ws, sizeof *vef);
-		//AN(vef);
 		//memset(vef, 0, sizeof *vef);
 		//vef->magic = VEF_MAGIC;
 		vef->vgz = VGZ_NewGzip(sp, "G F E");
@@ -321,8 +321,8 @@ vfp_esi_begin(struct sess *sp, size_t estimate)
 	} else if (sp->wrk->is_gzip) {
 		sp->wrk->vgz_rx = VGZ_NewUngzip(sp, "U F E");
 		ALLOC_OBJ(vef, VEF_MAGIC);
+		AN(vef);
 		//vef = (void*)WS_Alloc(sp->ws, sizeof *vef);
-		//AN(vef);
 		//memset(vef, 0, sizeof *vef);
 		//vef->magic = VEF_MAGIC;
 		vef->vgz = VGZ_NewGzip(sp, "G F E");



More information about the varnish-commit mailing list