summaryrefslogtreecommitdiff
path: root/edgemesh
diff options
context:
space:
mode:
authorShiming Zhang <wzshiming@foxmail.com>2021-03-24 15:51:40 +0800
committerShiming Zhang <wzshiming@foxmail.com>2021-03-24 15:52:28 +0800
commit3234d7b58cfa12f3d4a4024a069f7a1797668cd9 (patch)
tree489d7120502ee2d7ec8961e52c0d3d705a25cff4 /edgemesh
parentMerge pull request #2710 from TianTianBigWang/cleanup/router_http (diff)
downloadkubeedge-3234d7b58cfa12f3d4a4024a069f7a1797668cd9.tar.gz
Fix wrong field used for calculating length
Signed-off-by: Shiming Zhang <wzshiming@foxmail.com>
Diffstat (limited to 'edgemesh')
-rw-r--r--edgemesh/pkg/dns/dns.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/edgemesh/pkg/dns/dns.go b/edgemesh/pkg/dns/dns.go
index 971d4a144..dd4c30ae9 100644
--- a/edgemesh/pkg/dns/dns.go
+++ b/edgemesh/pkg/dns/dns.go
@@ -421,7 +421,7 @@ func (h *dnsHeader) getByteFromDNSHeader() (rspHead []byte) {
idxTransactionID := unsafe.Sizeof(h.id)
idxFlags := unsafe.Sizeof(h.flags) + idxTransactionID
- idxQDCount := unsafe.Sizeof(h.anCount) + idxFlags
+ idxQDCount := unsafe.Sizeof(h.qdCount) + idxFlags
idxANCount := unsafe.Sizeof(h.anCount) + idxQDCount
idxNSCount := unsafe.Sizeof(h.nsCount) + idxANCount
idxARCount := unsafe.Sizeof(h.arCount) + idxNSCount