BUG/MEDIUM: deinit: check fdtab before fdtab[fd].owner
authorWilly Tarreau <w@1wt.eu>
Wed, 14 Oct 2020 10:13:51 +0000 (12:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 14 Oct 2020 10:13:51 +0000 (12:13 +0200)
commit1a3770cbc7de5a00f3aab3238a587468e419c7f4
treed95213353f39ee31c1405dafcf9676a7384dec3d
parent2f6f362756124d13ec68680c2e6226ba75d926da
BUG/MEDIUM: deinit: check fdtab before fdtab[fd].owner

When running a pure config check (haproxy -c) we go through the deinit
phase without having allocated fdtab, so we can't blindly dereference
it. The issue was added by recent commit ae7bc4a23 ("MEDIUM: deinit:
close all receivers/listeners before scanning proxies"), no backport is
needed.
src/haproxy.c