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:
Érico Nogueira 2021-09-20 20:25:40 -03:00
parent 27930277bc
commit 3e4b5a3eb9
1 changed files with 2 additions and 2 deletions

View File

@ -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;