mirror of
https://github.com/golang/sys.git
synced 2026-02-08 11:46:04 +03:00
Don't shadow the empty var when determining whether to send a single byte when iovecs are empty but oob is non-empty. This will lead to the n value correctly being reset to 0 before return. No test because it's not possible to trigger this case on all platforms, e.g. darwin where sendmsg with empty buf and non-empty oob returns EINVAL. This was introduced by CL 412497 and CL 419396. Updates golang/go#52885 Change-Id: Iafc5a4b22e10b396ba5f7d4f2ac1c50df195a125 Reviewed-on: https://go-review.googlesource.com/c/sys/+/419914 Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Florian Lehner <lehner.florian86@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com>
71 KiB
71 KiB