]> Cypherpunks repositories - gostls13.git/commit
syscall: return early on error in Recvmsg
authorTobias Klauser <tklauser@distanz.ch>
Sat, 10 Jan 2026 14:56:01 +0000 (15:56 +0100)
committerGopher Robot <gobot@golang.org>
Thu, 22 Jan 2026 20:40:23 +0000 (12:40 -0800)
commit1996c22f0a58a32f5f415e1a6c84bcb305f04c36
treecc2a1a81f71fe36373c575d25005c379662f5a65
parentc61a48619ff2d26543d0f4874ab495bbbfdc701f
syscall: return early on error in Recvmsg

Currently, Recvmsg may access the rsa buffer even if the underlying syscall
returns an error.

Following the same change done for x/sys/unix.Recvmsg in CL 734740.

For golang/go#76848

Change-Id: I2a145d822442a2033a76f4717317a39010b17bd5
Reviewed-on: https://go-review.googlesource.com/c/go/+/735121
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Florian Lehner <lehner.florian86@gmail.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
src/syscall/syscall_unix.go