commit | 8aa8384e22dd0b66ded00c70a9c6034278b4bb69 | [log] [tgz] |
---|---|---|
author | Thierry FOURNIER <tfournier@exceliance.fr> | Fri Feb 06 17:50:55 2015 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Fri Feb 06 18:04:27 2015 +0100 |
tree | cb3290e5c75a4fb834d792f7dc85a25f2b9b7356 | |
parent | 2a3fb1c8bb7062fcfaf4c695f456ee457c4e65b1 [diff] |
BUG/MINOR: pattern: error message missing This patch must be backported in 1.5 version.
diff --git a/src/pattern.c b/src/pattern.c index 208e33a..a6fc52d 100644 --- a/src/pattern.c +++ b/src/pattern.c
@@ -989,8 +989,10 @@ /* 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));