Skip to content

Commit

Permalink
fix NUL string literal
Browse files Browse the repository at this point in the history
  • Loading branch information
Habbie committed Mar 8, 2024
1 parent b099d81 commit 48fc1a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdns/auth-catalogzone.cc
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ std::string CatalogInfo::toJson() const

void CatalogInfo::updateHash(CatalogHashMap& hashes, const DomainInfo& di) const
{
hashes[di.catalog].process(std::to_string(di.id) + di.zone.toLogString() + "\0" + d_coo.toLogString() + "\0" + d_unique.toLogString());
hashes[di.catalog].process(std::to_string(di.id) + di.zone.toLogString() + string("\0", 1) + d_coo.toLogString() + string("\0", 1) + d_unique.toLogString());
for (const auto& group : d_group) {
hashes[di.catalog].process(std::to_string(group.length()) + group);
}
Expand Down

0 comments on commit 48fc1a0

Please sign in to comment.