From: Amos Jeffries Date: Fri, 2 Oct 2009 08:02:23 +0000 (+1300) Subject: Fix segfault parsing cache_dir with IOEngine= set X-Git-Tag: SQUID_3_0_STABLE20~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04f9f6627c22fd7fb4039686c23de598345ad4c5;p=thirdparty%2Fsquid.git Fix segfault parsing cache_dir with IOEngine= set --- diff --git a/src/fs/ufs/store_dir_ufs.cc b/src/fs/ufs/store_dir_ufs.cc index ed2c4389e3..e3b0a56915 100644 --- a/src/fs/ufs/store_dir_ufs.cc +++ b/src/fs/ufs/store_dir_ufs.cc @@ -143,7 +143,7 @@ UFSSwapDir::changeIO(DiskIOModule *module) IO->io = anIO; /* Change the IO Options */ - if (currentIOOptions->options.size() > 2) + if (currentIOOptions && currentIOOptions->options.size() > 2) delete currentIOOptions->options.pop_back(); /* TODO: factor out these 4 lines */