]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: pattern: handle errors from fgets when trying to load patterns
authorJerome Magnin <jmagnin@haproxy.com>
Fri, 17 Jan 2020 15:09:33 +0000 (16:09 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 17 Jan 2020 16:09:50 +0000 (17:09 +0100)
commit3c79d4bdc47e151a97d7acdd99382bd9ca3927a5
tree33c1a2dd664995a7e86810ed0cd4f4c6f7440284
parent17ccd1a3560a634a17d276833ff41b8063b72206
BUG/MINOR: pattern: handle errors from fgets when trying to load patterns

We need to do some error handling after we call fgets to make sure everything
went fine. If we don't users can be fooled into thinking they can load pattens
from directory because cfgparse doesn't flinch. This applies to acl patterns
map files.

This should be backported to all supported versions.
src/pattern.c