extb_combi: if there are more nodes than allowed, return EXTBAN_INVALID

This commit is contained in:
William Pitcock 2015-12-13 11:06:04 -06:00
parent 2e548a8a04
commit 5984986bcf
1 changed files with 6 additions and 0 deletions

View File

@ -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)