diff options
Diffstat (limited to 'userspace/ebtables2/ebtables.c')
-rw-r--r-- | userspace/ebtables2/ebtables.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/userspace/ebtables2/ebtables.c b/userspace/ebtables2/ebtables.c index 271415c..a79cfd1 100644 --- a/userspace/ebtables2/ebtables.c +++ b/userspace/ebtables2/ebtables.c @@ -1296,7 +1296,8 @@ static void delete_rule(int begin, int end) begin += entries->nentries + 1; if (end < 0) end += entries->nentries + 1; - if (begin <= 0 || begin > end || end > entries->nentries) + + if (begin < 0 || begin > end || end > entries->nentries) print_error("Sorry, wrong rule numbers"); if ((begin = check_rule_exists(begin)) == -1 || |