From: Remi Tricot-Le Breton Date: Thu, 3 Dec 2020 17:19:32 +0000 (+0100) Subject: MINOR: cache: Consider invalid Age values as stale X-Git-Tag: v2.4-dev3~98 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=51058d64a68d147f8396016c1917e64f5d3e5c72;p=thirdparty%2Fhaproxy.git MINOR: cache: Consider invalid Age values as stale Do not store responses that have an invalid age header (non numerical, negative ...). --- diff --git a/src/cache.c b/src/cache.c index e0560e57e1..df6bd3352e 100644 --- a/src/cache.c +++ b/src/cache.c @@ -897,6 +897,8 @@ enum act_return http_action_store_cache(struct act_rule *rule, struct proxy *px, if (unlikely(object->age > true_maxage)) goto out; } + else + goto out; http_remove_header(htx, &ctx); }