fixed another problem with multi-typed receive buffers

This commit is contained in:
Jeff Hill
2002-03-06 21:27:04 +00:00
parent 84a43219fa
commit 5fdab29f3f

View File

@@ -503,18 +503,20 @@ void destroy_client ( struct client *client )
freeListFree ( rsrvLargeBufFreeListTCP, client->send.buf );
}
else {
errlogPrintf ( "Currupt send buffer type code during cleanup?\n" );
errlogPrintf ( "cas: Corrupt send buffer free list type code=%u during client cleanup?\n",
client->send.type );
}
}
if ( client->recv.buf ) {
if ( client->recv.type == mbtSmallTCP ) {
freeListFree ( rsrvSmallBufFreeListTCP, client->recv.buf );
}
else if ( client->send.type == mbtLargeTCP ) {
else if ( client->recv.type == mbtLargeTCP ) {
freeListFree ( rsrvLargeBufFreeListTCP, client->recv.buf );
}
else {
errlogPrintf ( "Currupt recv buffer type code during cleanup?\n" );
errlogPrintf ( "cas: Corrupt recv buffer free list type code=%u during client cleanup?\n",
client->send.type );
}
}
}