mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-27 11:52:34 -04:00
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.
This commit is contained in:
parent
e734e46669
commit
8f47221442
1 changed files with 0 additions and 1 deletions
|
|
@ -1597,7 +1597,6 @@ static int resolv_validate_dns_response(unsigned char *resp, unsigned char *bufe
|
|||
tmp_record->ar_item == NULL &&
|
||||
memcmp(tmp_record->data.target, answer_record->name, tmp_record->data_len) == 0) {
|
||||
/* Always use the received additional record to refresh info */
|
||||
pool_free(resolv_answer_item_pool, tmp_record->ar_item);
|
||||
tmp_record->ar_item = answer_record;
|
||||
answer_record = NULL;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue