From: Stefan Fritsch Date: Sun, 5 Jun 2011 18:06:42 +0000 (+0000) Subject: Fix wrong condition that may lead to NULL being set as 'Vary' header X-Git-Tag: 2.3.13~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89ec663ca31659272c280c3d3f7e863aa31f8907;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/server/util_expr_eval.c b/server/util_expr_eval.c index bb7ebc41a32..544b7a043ed 100644 --- a/server/util_expr_eval.c +++ b/server/util_expr_eval.c @@ -720,7 +720,7 @@ AP_DECLARE(int) ap_expr_exec_ctx(ap_expr_eval_ctx_t *ctx) "Evaluation of expression from %s:%d gave: %d", ctx->info->filename, ctx->info->line_number, rc); - if (ctx->vary_this) + if (*ctx->vary_this) apr_table_merge(ctx->r->headers_out, "Vary", *ctx->vary_this); return rc;