Index: store.c =================================================================== RCS file: /surf1/CVS/squid/src/store.c,v retrieving revision 1.61.4.8 retrieving revision 1.61.4.10 diff -c -w -r1.61.4.8 -r1.61.4.10 *** store.c 1996/04/25 22:05:16 1.61.4.8 --- store.c 1996/04/30 19:47:50 1.61.4.10 *************** *** 1,5 **** ! /* $Id: store.c,v 1.61.4.8 1996/04/25 22:05:16 wessels Exp $ */ /* * DEBUG: Section 20 store --- 1,5 ---- ! /* $Id: store.c,v 1.61.4.10 1996/04/30 19:47:50 wessels Exp $ */ /* * DEBUG: Section 20 store *************** *** 567,572 **** --- 567,573 ---- StoreEntry *e2 = NULL; hash_link *table_entry = NULL; char *newkey = NULL; + int loop_detect = 0; if (e->key && !BIT_TEST(e->flag, KEY_PRIVATE)) return; /* is already public */ *************** *** 577,582 **** --- 578,586 ---- e2 = (StoreEntry *) table_entry; storeSetPrivateKey(e2); storeReleaseRequest(e2); + if (loop_detect++ == 10) + fatal_dump("storeSetPublicKey() is looping!!"); + newkey = storeGeneratePublicKey(e->url, e->method); } if (e->key) storeHashDelete(e);