diff options
Diffstat (limited to 'iptables/nft-bridge.h')
-rw-r--r-- | iptables/nft-bridge.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft-bridge.h b/iptables/nft-bridge.h index 1fe26bab..9d49ccbe 100644 --- a/iptables/nft-bridge.h +++ b/iptables/nft-bridge.h @@ -78,7 +78,7 @@ static const char *ebt_standard_targets[NUM_STANDARD_TARGETS] = { static inline const char *nft_ebt_standard_target(unsigned int num) { - if (num > NUM_STANDARD_TARGETS) + if (num >= NUM_STANDARD_TARGETS) return NULL; return ebt_standard_targets[num]; |