On Fri, Nov 17, 2000, Andres Kroonmaa wrote:
>
> when 2.4 is configured with --enable-heap-replacement, and squid.conf
> does not redefine *_replacement_policy, squid segfaults. It expects
> lru to be used, but lru wasn't compiled.
Ok, this is because createRemovalPolicy() can return NULL when
something is not found, and the callers don't check for NULL.
Right, that makes sense.
I don't think it should return NULL though. I think I'll patch it to
default to the "first" entry in the storerepl_list, which is going to
be heap for now, but might be something else depending entirely upon
the output of repl_modules.sh.
Adrian
-- Adrian Chadd "God: Damn! I left pot everywhere! <adrian@creative.net.au> Now I'll have to create Republicans!" - Bill HicksReceived on Sat Nov 18 2000 - 03:33:42 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:12:59 MST