]> git.kaiwu.me - haproxy.git/commit
MINOR: cache: Remove a useless variable in http_action_req_cache_use
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Wed, 7 Oct 2026 15:26:34 +0000 (17:26 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 12 Oct 2026 12:41:03 +0000 (14:41 +0200)
commit5ded8149a5535b5a6019f561dac94ed95a5bb99d
tree30507d6fdeb251c706ec0c72ab8b53c2b1491f9e
parent22eca878e9b9b9279ee0a3def827245960f63d75
MINOR: cache: Remove a useless variable in http_action_req_cache_use

The only case in which the 'detached' variable keeps its default value
of 0, the 'res' variable has to be set to NULL so all the checks on
'detached' that happen later are always true since they are called in a
'if (res && res->secondary_key_signature)' block. The 'detached'
variable can then be removed completely.
src/cache.c