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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user