From 5984986bcf77ca4a0102fb96155ee4f6b95fcd6b Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sun, 13 Dec 2015 11:06:04 -0600 Subject: [PATCH] extb_combi: if there are more nodes than allowed, return EXTBAN_INVALID --- extensions/extb_combi.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/extensions/extb_combi.c b/extensions/extb_combi.c index 9c670a00..fbe4b786 100644 --- a/extensions/extb_combi.c +++ b/extensions/extb_combi.c @@ -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)