extb_combi: if there are more nodes than allowed, return EXTBAN_INVALID
This commit is contained in:
parent
2e548a8a04
commit
5984986bcf
1 changed files with 6 additions and 0 deletions
|
@ -254,6 +254,12 @@ static int eb_combi(const char *data, struct Client *client_p,
|
|||
}
|
||||
}
|
||||
|
||||
/* at this point, *p should == banend */
|
||||
if (p != banend) {
|
||||
DEBUG("combo invalid: more child extbans than allowed");
|
||||
RETURN_INVALID;
|
||||
}
|
||||
|
||||
recursion_depth--;
|
||||
|
||||
if (is_and)
|
||||
|
|
Loading…
Reference in a new issue