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

index 6ba640b3786ea803f436bc857233de57421eb82e..1f40f900aadca20a3bee7f7b1f7c2dff07746b8f 100644 (file)
@@ -144,7 +144,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 */