]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] acl: fix handling of empty lines in pattern files
authorWilly Tarreau <w@1wt.eu>
Mon, 3 Jan 2011 20:04:10 +0000 (21:04 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 3 Jan 2011 20:06:32 +0000 (21:06 +0100)
commit5109196275d0e7a33f5d029bff96aa0fd58d759a
tree4f8b4c4d3eb7cd440a23f36ff881373a82a24bd6
parent16023eef0bf199dc5baace721bf79b4a013ed621
[BUG] acl: fix handling of empty lines in pattern files

Gabriel Sosa reported that haproxy unexpectedly reports an error
when a pattern file loaded by an ACL contains an empty line. The
test was present but inefficient as it did not consider the '\n'
as the end of the line. This fix relies on the line length instead.

It should be backported to 1.4.
src/acl.c