Skip to content

Commit

Permalink
rec: Pad with '\0' bytes, not '0'..
Browse files Browse the repository at this point in the history
  • Loading branch information
rgacogne committed Mar 8, 2021
1 parent c8567be commit cc69ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdns/ednspadding.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
std::string makeEDNSPaddingOptString(size_t bytes)
{
std::string ret;
ret.resize(bytes, '0');
ret.resize(bytes, 0);
return ret;
}

0 comments on commit cc69ebb

Please sign in to comment.