From: Ruben d'Arco Date: Fri, 25 Mar 2016 09:37:06 +0000 (+0100) Subject: Suggested fix for #3362 and #2911 X-Git-Tag: dnsdist-1.0.0-beta1~30^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e49d0a2f1a3e4e71650df589dc2696f12177b833;p=thirdparty%2Fpdns.git Suggested fix for #3362 and #2911 --- diff --git a/pdns/dnspacket.cc b/pdns/dnspacket.cc index 5b144e6c0d..c52f43ad68 100644 --- a/pdns/dnspacket.cc +++ b/pdns/dnspacket.cc @@ -465,6 +465,7 @@ int DNSPacket::noparse(const char *mesg, int length) void DNSPacket::setTSIGDetails(const TSIGRecordContent& tr, const DNSName& keyname, const string& secret, const string& previous, bool timersonly) { d_trc=tr; + d_trc.d_origID = (((d.id & 0xFF)<<8) | ((d.id & 0xFF00)>>8)); d_tsigkeyname = keyname; d_tsigsecret = secret; d_tsigprevious = previous;