From 2e548a8a045d7a37afa453a28b0063b223c92ec9 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sun, 13 Dec 2015 10:58:05 -0600 Subject: [PATCH] extb_combi: try limiting the number of allowed nodes per depth to 3 --- extensions/extb_combi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/extb_combi.c b/extensions/extb_combi.c index c121e3c7..9c670a00 100644 --- a/extensions/extb_combi.c +++ b/extensions/extb_combi.c @@ -88,6 +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; size_t datalen; if (recursion_depth >= 5) { @@ -139,7 +140,7 @@ static int eb_combi(const char *data, struct Client *client_p, recursion_depth++; - while (TRUE) { + while (--allowed_nodes) { int invert = FALSE; char *child_data, child_data_buf[BANLEN]; ExtbanFunc f;