]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix segfault parsing cache_dir with IOEngine= set
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 2 Oct 2009 08:02:23 +0000 (21:02 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 2 Oct 2009 08:02:23 +0000 (21:02 +1300)
src/fs/ufs/store_dir_ufs.cc

index ed2c4389e3a9a4042d1b2c6d37a752d465ccef53..e3b0a5691514cdeba587fa21b95aad3738e6b27b 100644 (file)
@@ -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 */