diff -r 307788aac0a8 -r 8248b03a2669 realtimenetprots/sipfw/ProfileAgent/IMS_Agent/Src/sipimsprofileagent.cpp --- a/realtimenetprots/sipfw/ProfileAgent/IMS_Agent/Src/sipimsprofileagent.cpp Tue Feb 02 01:03:15 2010 +0200 +++ b/realtimenetprots/sipfw/ProfileAgent/IMS_Agent/Src/sipimsprofileagent.cpp Fri Apr 16 15:18:54 2010 +0300 @@ -886,7 +886,7 @@ PROFILE_DEBUG1("CSIPIMSProfileAgent::DeleteAllProfilesInWaitingQue") CSIPConcreteProfile* profile = NULL; - for (TInt i=0; i< iWaitForRegisteringArray.Count();i++) + for (TInt i = iWaitForRegisteringArray.Count() -1; i >= 0; --i) { profile = iWaitForRegisteringArray[i]; if (profile) @@ -1345,7 +1345,7 @@ { TBool found = EFalse; CSIPConcreteProfile* profile = NULL; - for (TInt i=0; i< aProfileArray.Count() && !found; i++) + for (TInt i= aProfileArray.Count() -1; i >= 0 && !found; --i) { CSIPConcreteProfile* tmp = aProfileArray[ i ]; found = ( tmp->Id() == aSIPConcreteProfile.Id() );