[master] 12609b138 Very minor nitpick

Nils Goroll nils.goroll at uplex.de
Mon Apr 24 14:11:05 UTC 2023


commit 12609b138573a7257972d858ec36e74b2232610d
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Mon Apr 24 16:03:56 2023 +0200

    Very minor nitpick
    
    When asserting that the context is a specific sub, we can compare equal.
    
    Ref 478e310a7d2c168e1c361d6f34291177cbc2a889

diff --git a/vmod/vmod_std.c b/vmod/vmod_std.c
index 72f84e9ef..dde572fae 100644
--- a/vmod/vmod_std.c
+++ b/vmod/vmod_std.c
@@ -270,7 +270,7 @@ VCL_VOID v_matchproto_(td_std_late_100_continue)
 vmod_late_100_continue(VRT_CTX, VCL_BOOL late)
 {
 	CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
-	AN(ctx->method & VCL_MET_RECV);
+	assert(ctx->method == VCL_MET_RECV);
 	CHECK_OBJ_NOTNULL(ctx->req, REQ_MAGIC);
 	if (ctx->req->want100cont)
 		ctx->req->late100cont = late;


More information about the varnish-commit mailing list