Update code

This commit is contained in:
Nick Peng
2018-05-25 23:55:48 +08:00
parent 64066c5948
commit a86f5e7459
5 changed files with 87 additions and 70 deletions

2
dns.c
View File

@@ -1116,7 +1116,7 @@ int dns_packet_init(struct dns_packet *packet, int size, struct dns_head *head)
init_head->qr = head->qr;
init_head->opcode = head->opcode;
init_head->aa = head->aa;
init_head->tc = 0;
init_head->tc = head->tc;
init_head->rd = head->rd;
init_head->ra = head->ra;
init_head->rcode = head->rcode;