[master] e01254d71 insignificant reordering
Nils Goroll
nils.goroll at uplex.de
Tue Jan 12 17:09:07 UTC 2021
commit e01254d71494ee9c17fdb1ec761ae8920d9fb4d3
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Tue Jan 12 17:52:16 2021 +0100
insignificant reordering
diff --git a/bin/varnishd/cache/cache_vrt_priv.c b/bin/varnishd/cache/cache_vrt_priv.c
index 8e7ef17e1..67d5b5755 100644
--- a/bin/varnishd/cache/cache_vrt_priv.c
+++ b/bin/varnishd/cache/cache_vrt_priv.c
@@ -208,12 +208,12 @@ VRT_priv_top(VRT_CTX, const void *vmod_id)
struct vmod_priv *priv;
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
- if (ctx->req == NULL) {
+ req = ctx->req;
+ if (req == NULL) {
WRONG("PRIV_TOP is only accessible in client VCL context");
NEEDLESS(return (NULL));
}
- req = ctx->req;
- CHECK_OBJ_NOTNULL(req, REQ_MAGIC);
+ CHECK_OBJ(req, REQ_MAGIC);
sp = ctx->sp;
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
top = req->top;
More information about the varnish-commit
mailing list