diff --git a/extensions/extb_combi.c b/extensions/extb_combi.c index 9c670a008..fbe4b7867 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)