mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-28 14:21:00 +01:00
As reported by Raphaël Enrici, certificates loaded from a directory are loaded in a non predictive order. If no certificate was first loaded from a file, it can result in different behaviours when haproxy is used in cluster. We can also imagine other cases which weren't met yet. Instead of using readdir(), we can use scandir() and sort files alphabetically. This will ensure a predictive behaviour. This patch should also be backported to 1.5.