Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions xt_ratelimit.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,9 +580,11 @@ static int parse_rule(struct xt_ratelimit_htable *ht, char *str, size_t size)
* should be equal (this is correct, because duplications
* inside of set(s) are impossible) */
if (!ent_chk) {
if (warn)
if (warn) {
pr_err("Del op doesn't reference any existing address (cmd: %s)\n", buf);
goto unlock_einval;
goto unlock_einval;
}
goto retok;
}
if (ent_chk->mtcnt != ent->mtcnt) {
pr_err("Del op doesn't match other rule set fully (cmd: %s)\n", buf);
Expand All @@ -602,6 +604,8 @@ static int parse_rule(struct xt_ratelimit_htable *ht, char *str, size_t size)
}
} else
ratelimit_ent_del(ht, ent_chk);

retok:
spin_unlock(&ht->lock);

if (ent)
Expand Down