mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-28 00:20:56 +00:00
[BUG] config: don't crash on empty pattern files.
Both Hank A. Paulson and Rob at pixsense reported a crash when loading ACLs from a pattern file which contains empty lines. From the tests, it appears that only files that contain nothing but empty lines are causing that (in the past they would have had their line feeds loaded as patterns). The crash happens in the free_pattern() call which doesn't like to be called with a NULL pattern. Let's make it accept it so that it's more in line with the standard uses of free() which ignores NULLs.
This commit is contained in:
parent
1e2a170cf8
commit
dfd7fca26c
Loading…
Reference in New Issue
Block a user