httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1132467 - /httpd/httpd/trunk/server/util_expr_eval.c
Date Sun, 05 Jun 2011 18:06:42 GMT
Author: sf
Date: Sun Jun  5 18:06:42 2011
New Revision: 1132467

URL: http://svn.apache.org/viewvc?rev=1132467&view=rev
Log:
Fix wrong condition that may lead to NULL being set as 'Vary' header

Modified:
    httpd/httpd/trunk/server/util_expr_eval.c

Modified: httpd/httpd/trunk/server/util_expr_eval.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/util_expr_eval.c?rev=1132467&r1=1132466&r2=1132467&view=diff
==============================================================================
--- httpd/httpd/trunk/server/util_expr_eval.c (original)
+++ httpd/httpd/trunk/server/util_expr_eval.c Sun Jun  5 18:06:42 2011
@@ -720,7 +720,7 @@ AP_DECLARE(int) ap_expr_exec_ctx(ap_expr
                       "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;



Mime
View raw message