Commit 87808673 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[2726] Suppress check for no exception on construction

parent a5c5c9e3
...@@ -49,6 +49,8 @@ parseAddresses(isc::data::ConstElementPtr addresses, ...@@ -49,6 +49,8 @@ parseAddresses(isc::data::ConstElementPtr addresses,
"address and port"); "address and port");
} }
try { try {
// Just check, don't use the address for anything yet
// cppcheck-suppress unusedScopedObject
IOAddress(addr->stringValue()); IOAddress(addr->stringValue());
if (port->intValue() < 0 || if (port->intValue() < 0 ||
port->intValue() > 0xffff) { port->intValue() > 0xffff) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment