mirror of
https://github.com/yrutschle/sslh.git
synced 2025-04-13 15:47:15 +03:00
fix error message upon regex syntax error
This commit is contained in:
parent
544c2b6d2f
commit
891bcf9966
@ -189,7 +189,7 @@ static void setup_regex_probe(struct sslhcfg_protocols_item *p)
|
||||
err = malloc(errsize = regerror(res, pattern_list[i], NULL, 0));
|
||||
CHECK_ALLOC(err, "malloc");
|
||||
regerror(res, pattern_list[i], err, errsize);
|
||||
fprintf(stderr, "%s:%s\n", pattern_list[i], err);
|
||||
fprintf(stderr, "%s:%s\n", p->regex_patterns[i], err);
|
||||
free(err);
|
||||
exit(1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user