summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-14 07:26:22 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-14 07:26:22 +0000
commita6aa1a42246a669cf4c80baa9e6305fd324bc202 (patch)
tree5c10deab79b8aeb39c0af2b66b2cebe94653e9ad /sys/kern
parentb74bc05901a6845a04831f6ae238d73f8a2cc7f2 (diff)
incorrect size calculation in mbuf copying, netbsd pr#2692; fix from explorer@flame.org
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/uipc_socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c
index f5e27bc2ea1..6d0d9862a64 100644
--- a/sys/kern/uipc_socket.c
+++ b/sys/kern/uipc_socket.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_socket.c,v 1.4 1996/08/05 01:00:53 deraadt Exp $ */
+/* $OpenBSD: uipc_socket.c,v 1.5 1996/08/14 07:26:21 deraadt Exp $ */
/* $NetBSD: uipc_socket.c,v 1.21 1996/02/04 02:17:52 christos Exp $ */
/*
@@ -427,7 +427,7 @@ restart:
} else
len = min(MCLBYTES, resid);
#endif
- space -= MCLBYTES;
+ space -= len;
} else {
nopages:
len = min(min(mlen, resid), space);