]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Copy the DNS header before encrypting it in place 5580/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 4 Aug 2017 09:49:22 +0000 (11:49 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 4 Aug 2017 09:49:22 +0000 (11:49 +0200)
commit57847d6518525db98487275e20d49a3595a374ed
treecd778ae3a152247ba7f35c2472bca0e34ded4c8f
parent5ab772f58482c987d98e4ac406b66a49ba8a39f6
dnsdist: Copy the DNS header before encrypting it in place

When DNSCrypt is enabled, we encrypt the answer in place, but we
need to keep a copy of the DNS header of the original answer to
be able to populate the responses ring buffer.
pdns/dnsdist-tcp.cc
pdns/dnsdist.cc
pdns/dnsdist.hh