BUG/MINOR: cache: properly ignore unparsable max-age in quotes
authorWilly Tarreau <w@1wt.eu>
Mon, 8 Nov 2021 11:09:27 +0000 (12:09 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 8 Nov 2021 11:09:27 +0000 (12:09 +0100)
commit1f38bdb3f63f3ce7422bedfe3a6e24c1619e9881
treec5da822df6b072c195453799d38945d54e217710
parent49b0482ed4a24483de8627b246ae9068bbf405e8
BUG/MINOR: cache: properly ignore unparsable max-age in quotes

When "max-age" or "s-maxage" receive their values in quotes, the pointer
to the integer to be parsed is advanced by one, but the error pointer
check doesn't consider this advanced offset, so it will not match a
parse error such as max-age="a" and will take the value zero instead.

This probably needs to be backported, though it's unsure it has any
effect in the real world.
src/cache.c