]> git.ipfire.org Git - thirdparty/squid.git/commit
Don't return NULL in createRemovalPolicy() if there is no match for
authoradrian <>
Sat, 18 Nov 2000 17:46:32 +0000 (17:46 +0000)
committeradrian <>
Sat, 18 Nov 2000 17:46:32 +0000 (17:46 +0000)
commit0c5ccf11f88699938dd8ab9e7edc3eb5ea0de7d5
tree199b3705ac2e6f58beb3009ccab921ca6dbb253c
parent06f7992f216a330eb8b952ec5263c80b0dde0c28
Don't return NULL in createRemovalPolicy() if there is no match for
the given policy type. None of the FS code handles this correctly,
and it was causing SIGSEGVs when a cache_replacement_policy was not
set in squid.conf, defaulting to lru, and lru was not compiled in.

We now warn very loudly and die with an error. cache.log will tell the
user to check cache_replacement_policy and memory_replacement_policy
in their squid.conf file.
src/store.cc