Skip to content

Commit

Permalink
dnstap: Fix a missed optimization reported by Coverity
Browse files Browse the repository at this point in the history
  • Loading branch information
rgacogne committed Jan 19, 2024
1 parent 66077f9 commit 269e4da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdns/dnstap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ std::string&& DnstapMessage::getBuffer()
}

DnstapMessage::DnstapMessage(std::string&& buffer, DnstapMessage::MessageType type, const std::string& identity, const ComboAddress* requestor, const ComboAddress* responder, DnstapMessage::ProtocolType protocol, const char* packet, const size_t len, const struct timespec* queryTime, const struct timespec* responseTime, const boost::optional<const DNSName&>& auth) :
d_buffer(buffer)
d_buffer(std::move(buffer))
{
protozero::pbf_writer pbf{d_buffer};

Expand Down

0 comments on commit 269e4da

Please sign in to comment.