diff --git a/cpp/devices/ctapdriver.cpp b/cpp/devices/ctapdriver.cpp index 11fb7db013..8cddc1c87b 100644 --- a/cpp/devices/ctapdriver.cpp +++ b/cpp/devices/ctapdriver.cpp @@ -217,7 +217,7 @@ pair CTapDriver::ExtractAddressAndMask(const string& s) const { string address = s; string netmask = "255.255.255.0"; //NOSONAR This hardcoded IP address is safe - if (const auto& components = Split(inet, '/', 2); components.size() == 2) { + if (const auto& components = Split(s, '/', 2); components.size() == 2) { address = components[0]; int m;