Error on removing head element from connection list

This commit is contained in:
Ron Pedde 2004-10-10 12:25:36 +00:00
parent 491e7f8b57
commit feda9d5a02

View File

@ -235,7 +235,8 @@ void ws_remove_dispatch_thread(WS_PRIVATE *pwsp, WS_CONNINFO *pwsc) {
if(pthread_mutex_lock(&pwsp->exit_mutex))
DPRINTF(ERR_FATAL,"Cannot lock condition mutex\n");
pHead=pTail=pwsp->connlist.next;
pTail=&(pwsp->connlist);
pHead=pwsp->connlist.next;
while((pHead) && (pHead->pwsc != pwsc)) {
pTail=pHead;