mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-05-10 11:48:01 +00:00
CLEANUP: always initialize the answer_list
Similar to the previous patch, the answer's list was only initialized the first time it was added to a list, leading to bogus outdated pointer to appear when debugging code is added around it to watch it. Let's make sure it's always initialized upon allocation.
This commit is contained in:
parent
25e010906a
commit
48664c048d
@ -991,6 +991,7 @@ static int resolv_validate_dns_response(unsigned char *resp, unsigned char *bufe
|
||||
answer_record->ar_item = NULL;
|
||||
answer_record->last_seen = TICK_ETERNITY;
|
||||
LIST_INIT(&answer_record->attached_servers);
|
||||
LIST_INIT(&answer_record->list);
|
||||
|
||||
offset = 0;
|
||||
len = resolv_read_name(resp, bufend, reader, tmpname, DNS_MAX_NAME_SIZE, &offset, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user