diff options
author | green <green@FreeBSD.org> | 1999-12-27 06:31:53 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 1999-12-27 06:31:53 +0000 |
commit | 04cead132ddb264f917bbce4fd71d663b16aa645 (patch) | |
tree | c42719e7aad7722291f554eab9f4420636b0b570 /sys | |
parent | b21353b480da81572455eba81a4f4ef174ab3ac4 (diff) | |
download | FreeBSD-src-04cead132ddb264f917bbce4fd71d663b16aa645.zip FreeBSD-src-04cead132ddb264f917bbce4fd71d663b16aa645.tar.gz |
Correct an uninitialized variable use, which, unlike most times, is
actually a bug this time.
Submitted by: bde
Reviewed by: bde
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/uipc_socket.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index 9e4fa56..cdf81ba 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -644,10 +644,8 @@ soreceive(so, psa, uio, mp0, controlp, flagsp) flags = 0; if (flags & MSG_OOB) { m = m_get(M_WAIT, MT_DATA); - if (m == NULL) { - error = ENOBUFS; - goto release; - } + if (m == NULL) + return (ENOBUFS); error = (*pr->pr_usrreqs->pru_rcvoob)(so, m, flags & MSG_PEEK); if (error) goto bad; |