summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-16 14:30:18 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-16 14:30:18 +0000
commit9f156787128c442499df5538ef96829e4c9da56b (patch)
tree816944cb85ca5e6eb157d7d6918da08770b829fa /sys
parentcf3e766ba4e8338eda81a17c42b951261e98d8da (diff)
uiomove not checked for failure; wpaul@skynet.ctr.columbia.edu
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/uipc_socket.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c
index c71551fbfca..c6650e48c29 100644
--- a/sys/kern/uipc_socket.c
+++ b/sys/kern/uipc_socket.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_socket.c,v 1.7 1996/09/20 22:53:10 deraadt Exp $ */
+/* $OpenBSD: uipc_socket.c,v 1.8 1996/12/16 14:30:17 deraadt Exp $ */
/* $NetBSD: uipc_socket.c,v 1.21 1996/02/04 02:17:52 christos Exp $ */
/*
@@ -705,6 +705,8 @@ dontblock:
splx(s);
error = uiomove(mtod(m, caddr_t) + moff, (int)len, uio);
s = splsoftnet();
+ if (error)
+ goto release;
} else
uio->uio_resid -= len;
if (len == m->m_len - moff) {