Skip to content

Commit

Permalink
Fix SonarQuibe issue
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Sep 25, 2023
1 parent 639e82c commit c5edfaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/devices/ctapdriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ bool CTapDriver::Init(const unordered_map<string, string>& const_params)
#endif
}

pair<string, string> CTapDriver::ExtractAddressAndMask(const string& inet) const
pair<string, string> CTapDriver::ExtractAddressAndMask(const string& s) const
{
string address = inet;
string address = s;
string netmask = "255.255.255.0"; //NOSONAR This hardcoded IP address is safe
const auto& components = Split(inet, '/', 2);
if (components.size() == 2) {
Expand Down

0 comments on commit c5edfaf

Please sign in to comment.