]> git.ipfire.org Git - thirdparty/pdns.git/commit
Fix end computation in DNSName::packetParser 3498/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 2 Mar 2016 15:57:02 +0000 (16:57 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 2 Mar 2016 15:57:02 +0000 (16:57 +0100)
commitb43f60f363d3b997db088278038226cd094b3b51
tree3c812d306518df8b1988e88ba02e8820ed1958f7
parentcceddbeff82cf031f93af458361bfcfb23909586
Fix end computation in DNSName::packetParser

end was computed by

end = qpos + offset + len

but the offset is already included in len, as seen in the way
label compression is handled, by calling packetParser with the
same original position and len but an updated offset.
pdns/dnsname.cc
pdns/test-dnsname_cc.cc