Skip to content

Commit

Permalink
Fix table dns_resolvers dns-search bug with multiple search domains (
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenMachluf committed May 11, 2024
1 parent 693a826 commit a577830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osquery/tables/networking/posix/dns_resolvers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ QueryData genDNSResolversImpl(QueryContext& context, Logger& logger) {
Row r;
r["id"] = INTEGER(i);
r["type"] = "search";
r["address"] = std::string(_res.dnsrch[0]);
r["address"] = std::string(_res.dnsrch[i]);
r["options"] = BIGINT(_res.options);
r["pid_with_namespace"] = "0";
results.push_back(r);
Expand Down

0 comments on commit a577830

Please sign in to comment.