]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: resolvers: remove pool_free(NULL) in SRV additional record matching
authorWilly Tarreau <w@1wt.eu>
Fri, 22 May 2026 07:49:06 +0000 (07:49 +0000)
committerWilly Tarreau <w@1wt.eu>
Mon, 25 May 2026 08:57:14 +0000 (10:57 +0200)
commit6bb8cb51e6be6df22d98484a6098077d40d04083
treef3d29e98933956fce551b2e0ba12c7f5fe511fe6
parent8fe8d5fbe3e4f7e3b6debb0741223c07f4c5a248
CLEANUP: resolvers: remove pool_free(NULL) in SRV additional record matching

In resolv_validate_dns_response(), when matching an additional A/AAAA
record to an SRV record, the code checked tmp_record->ar_item == NULL
then called pool_free(resolv_answer_item_pool, tmp_record->ar_item).
This is a copy-paste mistake from similar patterns elsewhere since
the pointer is confirmed to be NULL a few lines above, so let's just
drop the confusing pool_free.
src/resolvers.c