Commit 775621e8 authored by Michael Tremer's avatar Michael Tremer

network-list: Add greater elements after the current one

The list was otherwise not sorted
Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent d3a5f691
......@@ -184,10 +184,12 @@ static off_t loc_network_list_find(struct loc_network_list* list,
return i;
}
if (result > 0)
if (result > 0) {
lo = i + 1;
else
i++;
} else {
hi = i - 1;
}
}
*found = 0;
......
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