diff options
| author | Shulhan <ms@kilabit.info> | 2024-05-04 15:03:41 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-05-04 15:17:04 +0700 |
| commit | a129da5d8790b25de11fa270b411ad5aca6fa892 (patch) | |
| tree | df5001c739449666864725ab2dada05f5977a80b /lib/dns | |
| parent | de4da5d99646d9daf494915901211348f9a3e1db (diff) | |
| download | pakakeh.go-a129da5d8790b25de11fa270b411ad5aca6fa892.tar.xz | |
lib: comply with linter recommendations
Diffstat (limited to 'lib/dns')
| -rw-r--r-- | lib/dns/resource_record.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dns/resource_record.go b/lib/dns/resource_record.go index 4f620222..ff8fe157 100644 --- a/lib/dns/resource_record.go +++ b/lib/dns/resource_record.go @@ -206,7 +206,7 @@ func (rr *ResourceRecord) unpack(packet []byte, startIdx uint) (x uint, err erro rr.rdlen = libbytes.ReadUint16(packet, x) x += 2 - var lenXRdata uint = x + uint(rr.rdlen) + var lenXRdata = x + uint(rr.rdlen) if lenPacket < lenXRdata { return x, fmt.Errorf("%s: %s %d: packet length %d smaller than index+rdata %d+%d (%d)", logp, rr.Name, rr.Type, lenPacket, x, rr.rdlen, lenXRdata) |
