]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: dns: Properly initialize new DNS session
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 3 Aug 2022 08:30:06 +0000 (10:30 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 3 Aug 2022 08:30:07 +0000 (10:30 +0200)
commit14a60d420a66368a4262e8ecf259781292509659
tree059aaf8710e70ccf337614f9f5534f27731024af
parent642170a653d1587572fbce010156b49923f06947
BUG/MEDIUM: dns: Properly initialize new DNS session

When a new DNS session is created, all its fields are not properly
initialized. For instance, "tx_msg_offset" can have any value after the
allocation. So, to fix the bug, pool_zalloc() is now used to allocate new
DNS session.

This patch should fix the issue #1781. It must be backported as far as 2.4.
src/dns.c