commit | 62e467c667eadcdba224d88ba57958b34a804a2c | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Oct 20 11:02:13 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Wed Oct 20 17:52:17 2021 +0200 |
tree | 93fef356be974b29a1a9d935fa8a729dd2060782 | |
parent | b56a878950c602886d018a14a974103024c8ded4 [diff] |
DEBUG: dns: add a few more BUG_ON at sensitive places A few places have been caught triggering late bugs recently, always cases of use-after-free because a freed element was still found in one of the lists. This patch adds a few checks for such elements in dns_session_free() before the final pool_free() and dns_session_io_handler() before adding elements to lists to make sure they remain consistent. They do not trigger anymore now.