[master] 6675a65 Ensure that bitfields get set.

Poul-Henning Kamp phk at FreeBSD.org
Tue Feb 25 12:33:25 CET 2014


commit 6675a655c54c1ae55445d3c5b40839cc14ca11c9
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Feb 19 09:19:45 2014 +0000

    Ensure that bitfields get set.

diff --git a/bin/varnishd/cache/cache_vrt_var.c b/bin/varnishd/cache/cache_vrt_var.c
index 2b1629a..2c79c0e 100644
--- a/bin/varnishd/cache/cache_vrt_var.c
+++ b/bin/varnishd/cache/cache_vrt_var.c
@@ -159,7 +159,7 @@ VRT_l_bereq_uncacheable(const struct vrt_ctx *ctx, unsigned a)
 		VSLb(ctx->vsl, SLT_VCL_Error,
 		    "Ignoring attempt to reset bereq.uncacheable");
 	} else if (a) {
-		ctx->bo->do_pass = a;
+		ctx->bo->do_pass = 1;
 	}
 }
 
@@ -182,7 +182,7 @@ VRT_l_beresp_uncacheable(const struct vrt_ctx *ctx, unsigned a)
 		    "Ignoring attempt to reset beresp.uncacheable");
 	} else if (a) {
 		VSLb(ctx->vsl, SLT_Debug, "XXXX: UNCACHEABLE %u" , a);
-		ctx->bo->uncacheable = a;
+		ctx->bo->uncacheable = 1;
 	}
 }
 



More information about the varnish-commit mailing list