2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 21:45:37 +00:00

[1528] Nitpick comparison optimization in Linux version of ifacemgr

This commit is contained in:
Tomek Mrugalski
2012-05-08 14:50:29 +02:00
parent 3b48a25b8e
commit 67a08ea405

View File

@@ -252,7 +252,7 @@ void Netlink::parse_rtattr(RTattribPtrs& table, struct rtattr* rta, int len)
// immediately follows pointed rta structure. See aforementioned
// header for details.
while (RTA_OK(rta, len)) {
if (rta->rta_type <= table.size()-1) {
if (rta->rta_type < table.size()) {
table[rta->rta_type] = rta;
}
rta = RTA_NEXT(rta,len);