Commit 09638ba6 authored by Francis Dupont's avatar Francis Dupont
Browse files

[3919] use last_offset late to avoid cppcheck new warnings

parent c0c4b2e6
......@@ -363,7 +363,8 @@ size_t LibDHCP::unpackOptions6(const OptionBuffer& buf,
offset += opt_len;
}
return (offset);
last_offset = offset;
return (last_offset);
}
size_t LibDHCP::unpackOptions4(const OptionBuffer& buf,
......@@ -463,7 +464,8 @@ size_t LibDHCP::unpackOptions4(const OptionBuffer& buf,
options.insert(std::make_pair(opt_type, opt));
offset += opt_len;
}
return (offset);
last_offset = offset;
return (last_offset);
}
size_t LibDHCP::unpackVendorOptions6(const uint32_t vendor_id,
......
Supports Markdown
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