Skip to content

Commit

Permalink
Fixed incorrect passing of names to a repeated fieldset
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-pearce committed Sep 21, 2015
1 parent 2217bf0 commit e885c7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/probe_modules/module_dns.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ static bool process_response_question(char **data, uint16_t* data_len,
fs_add_uint64(qfs, "qclass", qclass);

// Now we're adding the new fs to the list.
fs_add_fieldset(list, "question", qfs);
fs_add_fieldset(list, NULL, qfs);

// Now update the pointers.
*data = *data + bytes_consumed + sizeof(dns_question_tail);
Expand Down Expand Up @@ -567,7 +567,7 @@ static bool process_response_answer(char **data, uint16_t* data_len,
}

// Now we're adding the new fs to the list.
fs_add_fieldset(list, "question", afs);
fs_add_fieldset(list, NULL, afs);

// Now update the pointers.
*data = *data + bytes_consumed + sizeof(dns_answer_tail) + rdlength;
Expand Down

0 comments on commit e885c7b

Please sign in to comment.