diff options
| author | Mikio Hara <mikioh.mikioh@gmail.com> | 2015-09-24 15:23:26 +0900 |
|---|---|---|
| committer | Mikio Hara <mikioh.mikioh@gmail.com> | 2015-09-25 22:00:27 +0000 |
| commit | 707b619c3a9d94ea61a471aeecfe1c914c3372e1 (patch) | |
| tree | 907fb4985af8f14cdd99c154017c64d86c90c2ea /src/encoding/json/encode.go | |
| parent | 81fada52a6abe385c7e996f9908d8733fb5f0f28 (diff) | |
| download | go-707b619c3a9d94ea61a471aeecfe1c914c3372e1.tar.xz | |
syscall: fix alignment check for link-layer information on BSD variants
When link-layer information is wrapped with sockaddr_dl, we need to
follow the len field of sockaddr_dl. When link-layer information is
naked, we need to use the length of whole link-layer information.
Fixes #12641.
Change-Id: I4d377f64cbab1760b993fc55c719288616042bbb
Reviewed-on: https://go-review.googlesource.com/14939
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/encoding/json/encode.go')
0 files changed, 0 insertions, 0 deletions
