]> 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, 26 Feb 2017 08:46:24 +0000 (21:46 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 26 Feb 2017 08:46:24 +0000 (21:46 +1300)
commit7547051d5bb89e9bee52062fcd29d1e1ada3dfab
tree70b8fd1c07e620964e2795b018b3bb62b2524946
parent4145b19f447b7ed0e4483ea9ea663224775ea0e6
Fix crash when configuring with invalid delay_parameters restore value.

... like none/none. Introduced in rev 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