diff --git a/orchagent/intfsorch.cpp b/orchagent/intfsorch.cpp index 923944cb78f9..442e7c40ce2c 100644 --- a/orchagent/intfsorch.cpp +++ b/orchagent/intfsorch.cpp @@ -146,7 +146,10 @@ void IntfsOrch::doTask(Consumer &consumer) if (m_syncdIntfses[alias].ip_addresses.getSize() == 0) { if (removeRouterIntfs(port)) + { + m_syncdIntfses.erase(alias); it = consumer.m_toSync.erase(it); + } else it++; }