bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ccrtp 1.1.2 "removeDestinationFromList()" seems bug.


From: HyoungJu Lee
Subject: ccrtp 1.1.2 "removeDestinationFromList()" seems bug.
Date: Wed, 1 Dec 2004 22:29:11 +0900

Hi,
I think there is some bug.
========================================================
> +                       if ( getFirstDestination() == ta )
> +                               firstDestination = NULL;
====================================================
Let's assume that DestinationList object have A (first) and B (second)
transport address.
Now, I do "forgetDestination(A)", and then firstDesttination is NULL? 
and now I do "addDestination(A)", DestinationList object ONLY HAVE a "
A" address and destinationCounter value is 2.
so, I think,...
========================================================
                       if ( getFirstDestination() == ta ) 
                              if(ta->getNext()) firstDestination =
ta->getNext();
                              else                  firstDestination = NULL;
====================================================
Is right?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]