]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix crash when configuring with invalid delay_parameters restore value.
authorAlex Rousskov <rousskov@measurement-factory.com>
Tue, 31 Jan 2017 00:46:31 +0000 (17:46 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Tue, 31 Jan 2017 00:46:31 +0000 (17:46 -0700)
commitc86f80900daf0fda98058337b9c0cf9acc766af6
treeaa4c55803642d286f074146e63c41ba5e2b7a738
parentb8f75894774ab7c91fcca4e59f5238fdb0349230
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