diff --git a/src/credentials/FabricTable.cpp b/src/credentials/FabricTable.cpp index 0ceaa77a722fb3..7c50c2fc8b6ce3 100644 --- a/src/credentials/FabricTable.cpp +++ b/src/credentials/FabricTable.cpp @@ -442,7 +442,7 @@ FabricTable::~FabricTable() while (delegate) { FabricTable::Delegate * temp = delegate->next; - delegate = temp; + delegate = temp; } mDelegateListRoot = nullptr; } @@ -809,8 +809,8 @@ void FabricTable::RemoveFabricDelegate(FabricTable::Delegate * delegateToRemove) if (currentNode->next == delegateToRemove) { FabricTable::Delegate * temp = delegateToRemove->next; - currentNode->next = temp; - delegateToRemove->next = nullptr; + currentNode->next = temp; + delegateToRemove->next = nullptr; return; }