had qname wrong, fixed it
This commit is contained in:
parent
3c51389eaf
commit
0d9497bce6
1 changed files with 6 additions and 3 deletions
|
|
@ -72,7 +72,10 @@ parser_t* init_parser() {
|
|||
int_range(uint16(), 255, 255),
|
||||
NULL);
|
||||
|
||||
const parser_t *dns_question = sequence(length_value(uint8(), uint8()), // QNAME
|
||||
const parser_t *dns_question = sequence(sequence(many1(length_value(uint8(),
|
||||
uint8())),
|
||||
ch('\x00'),
|
||||
NULL), // QNAME
|
||||
qtype, // QTYPE
|
||||
qclass, // QCLASS
|
||||
NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue