Skip to content

Commit 3e24f87

Browse files
author
Stefan Fritsch
committed
Fix wrong condition that may lead to NULL being set as 'Vary' header
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1132467 13f79535-47bb-0310-9956-ffa450edef68
1 parent 7119f78 commit 3e24f87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/util_expr_eval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ AP_DECLARE(int) ap_expr_exec_ctx(ap_expr_eval_ctx_t *ctx)
720720
"Evaluation of expression from %s:%d gave: %d",
721721
ctx->info->filename, ctx->info->line_number, rc);
722722

723-
if (ctx->vary_this)
723+
if (*ctx->vary_this)
724724
apr_table_merge(ctx->r->headers_out, "Vary", *ctx->vary_this);
725725

726726
return rc;

0 commit comments

Comments
 (0)