diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2003-05-25 09:47:01 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2003-05-25 09:47:01 +0000 |
commit | 1446c29822eb361608dbec7cd744afa6a7bf7f69 (patch) | |
tree | 77672af0259f1ee47d847ae2b141acb942396c81 /ebtables.c | |
parent | 336f35ed0505ca24c477d85287fc1e7d03130cf4 (diff) | |
download | ebtables-1446c29822eb361608dbec7cd744afa6a7bf7f69.tar.gz |
*** empty log message ***
Diffstat (limited to 'ebtables.c')
-rw-r--r-- | ebtables.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 || |