lte: Check iterator before dereferencing
This commit is contained in:
@@ -48,8 +48,11 @@ EpcPgwApplication::UeInfo::RemoveBearer(uint8_t bearerId)
|
||||
{
|
||||
NS_LOG_FUNCTION(this << (uint16_t)bearerId);
|
||||
auto it = m_teidByBearerIdMap.find(bearerId);
|
||||
if (it != m_teidByBearerIdMap.end())
|
||||
{
|
||||
m_tftClassifier.Delete(it->second); // delete tft
|
||||
m_teidByBearerIdMap.erase(bearerId);
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t
|
||||
|
||||
Reference in New Issue
Block a user