Both lastmod and lastmods resolve to 0 when unset, but only lastmods is a

pointer. Fix comparison between apr_time_t and NULL.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1103850 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Graham Leggett
2011-05-16 19:25:07 +00:00
parent f60e484691
commit ef3dbf5cbd

View File

@ -973,7 +973,7 @@ static int cache_save_filter(ap_filter_t *f, apr_bucket_brigade *in)
}
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