]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix wrong condition that may lead to NULL being set as 'Vary' header
authorStefan Fritsch <sf@apache.org>
Sun, 5 Jun 2011 18:06:42 +0000 (18:06 +0000)
committerStefan Fritsch <sf@apache.org>
Sun, 5 Jun 2011 18:06:42 +0000 (18:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1132467 13f79535-47bb-0310-9956-ffa450edef68

server/util_expr_eval.c

index bb7ebc41a3293c2590cdac6d7d9f9567f5cbfdf8..544b7a043ed56c40ba3a60a0917d400642556787 100644 (file)
@@ -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;