commit | 8887df42c721e930089d31b28391090a10a497d7 | [log] [tgz] |
---|---|---|
author | Ian Gudger <igudger@google.com> | Fri Jul 13 11:02:30 2018 -0700 |
committer | Brad Fitzpatrick <bradfitz@golang.org> | Wed Jul 18 18:21:12 2018 +0000 |
tree | 65286ea4753b6eefa6d38f70c436d2e7715dcc5e | |
parent | d0887baf81f4598189d4e12a37c6da86f0bba4d0 [diff] |
dns/dnsmessage: fix bug in length fixup If during packing, the byte slice gets re-allocated between packing the ResourceHeader and ResourceBody, the length will get updated in the old byte slice before re-allocation resulting in a zero length in the final packed message. This change fixes the bug by passing the offset at which the length should be written instead of a slice of the output byte slice from ResourceHeader encoding step. Updates golang/go#16218 Change-Id: Ifd7e2f549b7087ed5b52eaa6ae78970fec4ad988 Reviewed-on: https://go-review.googlesource.com/123835 Run-TryBot: Ian Gudger <igudger@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This repository holds supplementary Go networking libraries.
The easiest way to install is to run go get -u golang.org/x/net
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/net
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html. The main issue tracker for the net repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/net:” in the subject line, so it is easy to find.