mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-08 16:23:24 -04:00
BUG/MINOR: dns: parsing error of some DNS response
The function which parses a DNS response buffer did not move properly a pointer when reading a packet where records does not use DNS "message compression" techniques. Thanks to 0yvind Johnsen for the help provided during the troubleshooting session.
This commit is contained in:
parent
638f66ac05
commit
5d681ba976
1 changed files with 2 additions and 0 deletions
|
|
@ -504,6 +504,8 @@ int dns_validate_dns_response(unsigned char *resp, unsigned char *bufend, char *
|
|||
return DNS_RESP_INVALID;
|
||||
if (memcmp(ptr, dn_name, dn_name_len) != 0)
|
||||
return DNS_RESP_WRONG_NAME;
|
||||
|
||||
reader += (dn_name_len + 1);
|
||||
}
|
||||
else {
|
||||
reader += (len + 1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue