mirror of https://github.com/ericonr/dnsquery.git
Actually obtain qdcount from answer.
We were using the previous value, set during query creation.
This commit is contained in:
parent
4c62db54e7
commit
79787eeaab
|
@ -118,6 +118,7 @@ int main()
|
|||
e("bad rcode");
|
||||
}
|
||||
|
||||
qdcount = ((uint16_t)r[4] << 8) | r[5];
|
||||
ancount = ((uint16_t)r[6] << 8) | r[7];
|
||||
if (ancount == 0) {
|
||||
e("no answers");
|
||||
|
|
Loading…
Reference in New Issue