Skip to content

Commit

Permalink
module_dns: null -> empty list on ICMPs (complete)
Browse files Browse the repository at this point in the history
Missed a code path with the previous commit.
  • Loading branch information
paul-pearce committed Sep 25, 2015
1 parent b550337 commit ebaebc6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/probe_modules/module_dns.c
Original file line number Diff line number Diff line change
Expand Up @@ -987,10 +987,10 @@ void dns_process_packet(const u_char *packet, uint32_t len, fieldset_t *fs,
fs_add_null(fs, "dns_nscount");
fs_add_null(fs, "dns_arcount");

fs_add_null(fs, "dns_questions");
fs_add_null(fs, "dns_answers");
fs_add_null(fs, "dns_authorities");
fs_add_null(fs, "dns_additionals");
fs_add_repeated(fs, "dns_questions", fs_new_repeated_fieldset());
fs_add_repeated(fs, "dns_answers", fs_new_repeated_fieldset());
fs_add_repeated(fs, "dns_authorities", fs_new_repeated_fieldset());
fs_add_repeated(fs, "dns_additionals", fs_new_repeated_fieldset());

fs_add_uint64(fs, "dns_unconsumed_bytes", 0);
fs_add_uint64(fs, "dns_parse_err", 1);
Expand Down

0 comments on commit ebaebc6

Please sign in to comment.