diff -N -u -r -X exclude_files squid-1.0.beta15/src/store.c squid-1.0.beta15.henrik/src/store.c --- squid-1.0.beta15/src/store.c Sun Jun 9 17:52:26 1996 +++ squid-1.0.beta15.henrik/src/store.c Mon Jun 10 16:01:27 1996 @@ -2384,6 +2384,15 @@ int storeEntryValidToSend(e) StoreEntry *e; { + if ((e->mem_status == NOT_IN_MEMORY) && /* Not in memory */ + (e->swap_status != SWAP_OK) && /* Not on disk */ + (e->store_status != STORE_PENDING) /* Not being fetched */ + ) { + debug(20,0,"storeEntryValidToSend: A non existent object detected. This can't be right\n"); + debug(20,0,"storeEntryValidToSend: Entry Dump:\n%s\n", storeToString(e)); + return 0; + } + if (squid_curtime < e->expires) return 1; if (e->expires == 0 && e->store_status == STORE_PENDING && e->mem_status != NOT_IN_MEMORY)