mirror of https://github.com/ericonr/dnsquery.git
Fix DNS header generation.
The end result is the same, but we were using nscount to populate the ARCOUNT fields.
This commit is contained in:
parent
27930277bc
commit
3e4b5a3eb9
|
@ -125,8 +125,8 @@ int main(int argc, char **argv)
|
|||
q[7] = BYTE1(ancount);
|
||||
q[8] = BYTE2(nscount);
|
||||
q[9] = BYTE1(nscount);
|
||||
q[10] = BYTE2(nscount);
|
||||
q[11] = BYTE1(nscount);
|
||||
q[10] = BYTE2(arcount);
|
||||
q[11] = BYTE1(arcount);
|
||||
|
||||
size_t i = 12;
|
||||
|
||||
|
|
Loading…
Reference in New Issue