mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05:00
BUG/MINOR: pattern: error message missing
This patch must be backported in 1.5 version.
This commit is contained in:
parent
2a3fb1c8bb
commit
8aa8384e22
1 changed files with 3 additions and 1 deletions
|
|
@ -989,8 +989,10 @@ int pat_idx_list_ptr(struct pattern_expr *expr, struct pattern *pat, char **err)
|
|||
|
||||
/* allocate pattern */
|
||||
patl = calloc(1, sizeof(*patl));
|
||||
if (!patl)
|
||||
if (!patl) {
|
||||
memprintf(err, "out of memory while indexing pattern");
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* duplicate pattern */
|
||||
memcpy(&patl->pat, pat, sizeof(*pat));
|
||||
|
|
|
|||
Loading…
Reference in a new issue