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

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--; recursion_depth--;
if (is_and) if (is_and)