]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
NPR bug. sd->log.clean.done will be NULL if start() fails.
authorwessels <>
Tue, 5 Dec 2000 16:03:31 +0000 (16:03 +0000)
committerwessels <>
Tue, 5 Dec 2000 16:03:31 +0000 (16:03 +0000)
src/store_dir.cc

index 6c327b130ff29528e5b2329fee0e8b006d5d9254..b502b78e933cfec1eb07a102b867882ffd8a8573 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_dir.cc,v 1.115 2000/10/31 23:48:15 wessels Exp $
+ * $Id: store_dir.cc,v 1.116 2000/12/05 09:03:31 wessels Exp $
  *
  * DEBUG: section 47    Store Directory Routines
  * AUTHOR: Duane Wessels
@@ -401,7 +401,8 @@ storeDirWriteCleanLogs(int reopen)
     /* Flush */
     for (dirn = 0; dirn < Config.cacheSwap.n_configured; dirn++) {
        sd = &Config.cacheSwap.swapDirs[dirn];
-       sd->log.clean.done(sd);
+       if (sd->log.clean.done)
+           sd->log.clean.done(sd);
     }
     if (reopen)
        storeDirOpenSwapLogs();