Skip to content

Commit

Permalink
dnsdist: Fix a warning about using an initialized variable in DNSCrypt
Browse files Browse the repository at this point in the history
  • Loading branch information
rgacogne committed Jul 5, 2024
1 parent b9822f3 commit d594930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdns/dnsdistdist/dnscrypt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ int DNSCryptContext::encryptQuery(PacketBuffer& packet, size_t maximumSize, cons
bool generateDNSCryptCertificate(const std::string& providerPrivateKeyFile, uint32_t serial, time_t begin, time_t end, DNSCryptExchangeVersion version, DNSCryptCert& certOut, DNSCryptPrivateKey& keyOut)
{
bool success = false;
DNSCryptCertSignedData::ResolverPrivateKeyType providerPrivateKey;
DNSCryptCertSignedData::ResolverPrivateKeyType providerPrivateKey{};
sodium_mlock(providerPrivateKey.data(), providerPrivateKey.size());
sodium_memzero(providerPrivateKey.data(), providerPrivateKey.size());

Expand Down

0 comments on commit d594930

Please sign in to comment.