]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
assert(dirn < ncache_dirs)
authorwessels <>
Fri, 16 May 1997 05:43:14 +0000 (05:43 +0000)
committerwessels <>
Fri, 16 May 1997 05:43:14 +0000 (05:43 +0000)
src/store_dir.cc

index 6be538bb73dcfd1dda21c47a52c9c6e1e4784467..3598eb95934efee2f905d71ba4cfa77ef0b0a832 100644 (file)
@@ -224,6 +224,7 @@ storeDirSwapLog(const StoreEntry * e)
     if (e->swap_file_number < 0)
        fatal_dump("storeDirSwapLog: swap_file_number < 0");
     dirn = e->swap_file_number >> SWAP_DIR_SHIFT;
+    assert(dirn < ncache_dirs);
     /* Note this printf format appears in storeWriteCleanLog() too */
     sprintf(logmsg, "%08x %08x %08x %08x %9d %s\n",
        (int) e->swap_file_number,