Fix mod_erlang_event

This commit is contained in:
Andrey Volk
2025-07-12 13:36:45 +03:00
parent 12487165c4
commit 240258ad4d
@@ -249,10 +249,7 @@ static void event_handler(switch_event_t *event)
}
if (*hp->value == '/') {
switch_regex_t *re = NULL;
int ovector[30];
cmp = !!switch_regex_perform(hval, comp_to, &re, ovector, sizeof(ovector) / sizeof(ovector[0]));
switch_regex_safe_free(re);
cmp = !!switch_regex(hval, comp_to);
} else {
cmp = !strcasecmp(hval, comp_to);
}