]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix crash when configuring with invalid delay_parameters restore value.
authorAlex Rousskov <rousskov@measurement-factory.com>
Sun, 5 Feb 2017 20:56:55 +0000 (09:56 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 5 Feb 2017 20:56:55 +0000 (09:56 +1300)
commit6596970bd2626f94ddd9a08a1d3a00b08394e860
tree28a6c00682c7cef4b5355b3d90b6e3d54919d37d
parent156df516a605b82f9db5af4705467474780d9895
Fix crash when configuring with invalid delay_parameters restore value.

... like none/none. Introduced in r13701 which fixed another, much
bigger delay_parameters parsing bug.

TODO: Reject all invalid input, including restore/max of "-/100".

TODO: Fix misleading/wrong associated error messages. For example:
  ERROR: invalid delay rate 'none/none'. Expecting restore/max or 'none'
  ERROR: restore rate in '1/none' is not a number.
src/DelaySpec.cc