use H_SEQ_INDEX to access a sequence
This commit is contained in:
parent
83f4944321
commit
9c10a75f3d
1 changed files with 1 additions and 2 deletions
|
|
@ -335,8 +335,7 @@ const HParsedToken* act_message(const HParseResult *p) {
|
|||
struct dns_question *questions = h_arena_malloc(p->arena,
|
||||
sizeof(struct dns_question)*(header->question_count));
|
||||
for (size_t i=0; i<header->question_count; ++i) {
|
||||
assert(qs->seq->elements[i]->token_type == (HTokenType)TT_dns_question);
|
||||
questions[i] = *(dns_question_t *)qs->seq->elements[i]->user;
|
||||
questions[i] = *H_SEQ_INDEX(dns_question, qs, i);
|
||||
}
|
||||
msg->questions = questions;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue