Skip to content

Commit

Permalink
wifi: Add checks in WifiRemoteStationManager::Lookup function
Browse files Browse the repository at this point in the history
  • Loading branch information
sderonne authored and Sébastien Deronne committed Jan 21, 2024
1 parent 3871191 commit fe550dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wifi/model/wifi-remote-station-manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1453,6 +1453,8 @@ WifiRemoteStation*
WifiRemoteStationManager::Lookup(Mac48Address address) const
{
NS_LOG_FUNCTION(this << address);
NS_ASSERT(!address.IsGroup());
NS_ASSERT(address != m_wifiMac->GetAddress());
auto stationIt = m_stations.find(address);

if (stationIt != m_stations.end())
Expand Down

0 comments on commit fe550dc

Please sign in to comment.