Skip to content

Commit e09eb58

Browse files
committed
Merge remote-tracking branch 'origin/regex_max_groups_segfault'
2 parents c17d15f + bb98977 commit e09eb58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/regex/regex_mod.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,8 @@ static int load_pcres(int action)
326326
i++;
327327
/* Check if there are more patterns than the max value */
328328
if (i >= max_groups) {
329-
LM_ERR("max patterns exceeded\n");
329+
i--;
330+
LM_ERR("max_groups: %d exceeded\n",max_groups);
330331
fclose(f);
331332
goto err;
332333
}

0 commit comments

Comments
 (0)