httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r1103850 - /httpd/httpd/trunk/modules/cache/mod_cache.c
Date Mon, 16 May 2011 19:25:07 GMT
Author: minfrin
Date: Mon May 16 19:25:07 2011
New Revision: 1103850

URL: http://svn.apache.org/viewvc?rev=1103850&view=rev
Log:
Both lastmod and lastmods resolve to 0 when unset, but only lastmods is a
pointer. Fix comparison between apr_time_t and NULL.

Modified:
    httpd/httpd/trunk/modules/cache/mod_cache.c

Modified: httpd/httpd/trunk/modules/cache/mod_cache.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/mod_cache.c?rev=1103850&r1=1103849&r2=1103850&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cache/mod_cache.c (original)
+++ httpd/httpd/trunk/modules/cache/mod_cache.c Mon May 16 19:25:07 2011
@@ -973,7 +973,7 @@ static int cache_save_filter(ap_filter_t
     }
     else if (!dconf->store_expired && (control.must_revalidate
             || control.proxy_revalidate) && (!control.s_maxage_value
-            || (!control.s_maxage && !control.max_age_value)) && lastmod
+            || (!control.s_maxage && !control.max_age_value)) && lastmods
             == NULL && etag == NULL) {
         /* if we're already stale, but can never revalidate, don't cache it */
         reason



Mime
View raw message