--------------------- PatchSet 6445 Date: 2007/12/28 08:23:26 Author: chtsanti Branch: async-calls Tag: (none) Log: The closeHandler list is not contain only CommCbFunPtrCallT objects but also other AsyncCall based objects Members: src/comm.cc:1.81.4.14->1.81.4.15 Index: squid3/src/comm.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/comm.cc,v retrieving revision 1.81.4.14 retrieving revision 1.81.4.15 diff -u -r1.81.4.14 -r1.81.4.15 --- squid3/src/comm.cc 24 Dec 2007 17:10:13 -0000 1.81.4.14 +++ squid3/src/comm.cc 28 Dec 2007 08:23:26 -0000 1.81.4.15 @@ -1,6 +1,6 @@ /* - * $Id: comm.cc,v 1.81.4.14 2007/12/24 17:10:13 chtsanti Exp $ + * $Id: comm.cc,v 1.81.4.15 2007/12/28 08:23:26 chtsanti Exp $ * * DEBUG: section 5 Socket Functions * AUTHOR: Harvest Derived @@ -1410,6 +1410,8 @@ typedef CommCbFunPtrCallT Call; typedef CommCloseCbParams Params; Call *aCall = dynamic_cast(p.getRaw()); + if(aCall == NULL) + continue; Params ¶ms = GetCommParams(p); if (aCall->dialer.handler == handler && params.data == data) break; /* This is our handler */