From 42bb446c96cff5ba37fefe2c88d3055c2430f396 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Fri, 16 Oct 2020 11:58:48 +0100 Subject: [PATCH] conf: shrink back RE_MAX_MATCHES to 16 with the IPv4 regex simplification from 22f059dc5e350b6d18a95265b8d4776d8adb9dca we're back to max 15 match groups according to re2r analysis (the most elaborate regex is the upstream one). --- src/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf.c b/src/conf.c index ebb1bfd..b94b71e 100644 --- a/src/conf.c +++ b/src/conf.c @@ -45,7 +45,7 @@ * number. Given the usual structure of the configuration file, sixteen * substring matches should be plenty. */ -#define RE_MAX_MATCHES 24 +#define RE_MAX_MATCHES 16 #define CP_WARN(FMT, ...) \ log_message (LOG_WARNING, "line %lu: " FMT, lineno, __VA_ARGS__)