[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ccrtp-devel] ccrtp library crash..help
From: |
HyoungJu Lee |
Subject: |
[Ccrtp-devel] ccrtp library crash..help |
Date: |
Wed, 24 Nov 2004 22:32:36 +0900 |
Hi, all.
It seems to be some PB in <forgetDestination()> function in outqueue classs.
it is always crash and core dump.
====================================================
bool
DestinationListHandler::removeDestinationFromList(const InetAddress& ia,
tpport_t dataPort,
tpport_t controlPort)
{
bool result = false;
TransportAddress* prev = NULL;
writeLockDestinationList();
TransportAddress* ta = getFirstDestination();
while ( NULL != ta ) {
if ( ia == ta->getNetworkAddress() &&
dataPort == ta->getDataTransportPort() &&
controlPort == ta->getControlTransportPort() ) {
// matches. -> remove it.
result = true;
if ( prev )
prev->setNext(ta->getNext());
destinationCounter--;
delete ta;
} else {
prev = ta;
ta = ta->getNext();
}
}
unlockDestinationList();
return result;
}
===================================================
please let me know about it......................
thanks ..
- [Ccrtp-devel] ccrtp library crash..help,
HyoungJu Lee <=