map: fix return code check for bpf_map_get_next_key calls
authorFelix Fietkau <nbd@nbd.name>
Tue, 7 Mar 2023 20:50:12 +0000 (21:50 +0100)
committerFelix Fietkau <nbd@nbd.name>
Tue, 7 Mar 2023 20:50:15 +0000 (21:50 +0100)
commit9a47ea4b683dd845ec94534fcd82d3117c9ab313
tree63712b252dbb2ee891b70c351ba3ae57d8129492
parent9c625ae96f2d204f7417d6c9b7092b9e4ac653a8
map: fix return code check for bpf_map_get_next_key calls

It can now apparently return -2 instead of -1.
Fixes an infinite loop on startup

Signed-off-by: Felix Fietkau <nbd@nbd.name>
map.c