mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Lock the socket buffer before jumping to the 'out' label if sblock()
fails in t4_soreceive_ddp().
This commit is contained in:
parent
de5a10ecbc
commit
86f05ea6cf
1 changed files with 1 additions and 1 deletions
|
|
@ -1057,9 +1057,9 @@ t4_soreceive_ddp(struct socket *so, struct sockaddr **psa, struct uio *uio,
|
|||
|
||||
/* Prevent other readers from entering the socket. */
|
||||
error = sblock(sb, SBLOCKWAIT(flags));
|
||||
SOCKBUF_LOCK(sb);
|
||||
if (error)
|
||||
goto out;
|
||||
SOCKBUF_LOCK(sb);
|
||||
|
||||
/* Easy one, no space to copyout anything. */
|
||||
if (uio->uio_resid == 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue