--------------------- PatchSet 1285 Date: 2001/01/12 08:36:02 Author: adri Branch: modio Tag: (none) Log: mark the callback as invalid *after* we've done the callback in storeClientUnregister(). Marking it invalid before calling the callback ends up assert()ing in storeClientCallback() which actually *checks* to make sure the callback is valid. whoops. Members: src/store_client.c:1.2.2.10->1.2.2.11 Index: squid/src/store_client.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/store_client.c,v retrieving revision 1.2.2.10 retrieving revision 1.2.2.11 diff -u -r1.2.2.10 -r1.2.2.11 --- squid/src/store_client.c 3 Jan 2001 12:11:32 -0000 1.2.2.10 +++ squid/src/store_client.c 12 Jan 2001 08:36:02 -0000 1.2.2.11 @@ -1,6 +1,6 @@ /* - * $Id: store_client.c,v 1.2.2.10 2001/01/03 12:11:32 adri Exp $ + * $Id: store_client.c,v 1.2.2.11 2001/01/12 08:36:02 adri Exp $ * * DEBUG: section 20 Storage Manager Client-Side Interface * AUTHOR: Duane Wessels @@ -306,7 +306,6 @@ assert(sc == &e->sc); assert(mem != NULL); assert(e->sc.valid == 1); - e->sc.valid = 0; mem->fd = -1; @@ -319,6 +318,7 @@ #if DELAY_POOLS delayUnregisterDelayIdPtr(&sc->delay_id); #endif + e->sc.valid = 0; cbdataUnlock(sc->callback_data); /* we're done with it now */ assert(e->lock_count > 0); CheckQuickAbort(e);