]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: log: fix regression introduced by commit 8a3f52
authorWilly Tarreau <w@1wt.eu>
Sun, 23 Dec 2012 16:29:07 +0000 (17:29 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 23 Dec 2012 16:34:05 +0000 (17:34 +0100)
commit3ed22a43905dd449732398af7b9db4a24b310fab
tree07c08564e5bb3e1e6ce85457e5b8795bb505cd72
parentb5ba4ec1f0a1e0c8b32e699de2c2cc94c731f71c
BUG/MINOR: log: fix regression introduced by commit 8a3f52

The commit above improved error reporting during log parsing, but as
a result, some shared strings such as httplog_format are truncated
during parsing. This is observable upon startup because the second
proxy to use httplog emits a warning.

Let's have the logformat parser duplicate the string while parsing it.
src/log.c