]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix segfault parsing cache_dir with IOEngine= set
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 16 Sep 2009 08:31:38 +0000 (20:31 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 16 Sep 2009 08:31:38 +0000 (20:31 +1200)
src/fs/ufs/store_dir_ufs.cc

index 3273547d4eed4338d160f9ba31cd150eff4fc7bf..5b09fcf3ebf3f07694b65ad1c64b29c9cb1381d0 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 */