]> jfr.im git - solanum.git/blobdiff - extensions/extb_combi.c
Add .travis.yml
[solanum.git] / extensions / extb_combi.c
index 9c670a008c910a2c88d8d23998faec9e91262dc2..1e9d35837a0b0163fc93432feed45bbf9aa2727b 100644 (file)
@@ -88,7 +88,7 @@ static int eb_combi(const char *data, struct Client *client_p,
 {
        const char *p, *banend;
        int have_result = FALSE;
-       int allowed_nodes = 3;
+       int allowed_nodes = 11;
        size_t datalen;
 
        if (recursion_depth >= 5) {
@@ -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)