diff options
author | silby <silby@FreeBSD.org> | 2002-01-09 01:45:17 +0000 |
---|---|---|
committer | silby <silby@FreeBSD.org> | 2002-01-09 01:45:17 +0000 |
commit | 4c0cf8914c7b830ba1083e7d0e1f5eafae2efec5 (patch) | |
tree | a43b0f89c9ab2f355377b619b7873378e609ac2e /sys/kern/uipc_socket2.c | |
parent | 83bb540baf6cde989427f6b8af0fc81cc73c95b6 (diff) | |
download | FreeBSD-src-4c0cf8914c7b830ba1083e7d0e1f5eafae2efec5.zip FreeBSD-src-4c0cf8914c7b830ba1083e7d0e1f5eafae2efec5.tar.gz |
Revert 1.81; 1.19 fixed this already in a different way.
Diffstat (limited to 'sys/kern/uipc_socket2.c')
-rw-r--r-- | sys/kern/uipc_socket2.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/uipc_socket2.c b/sys/kern/uipc_socket2.c index 305aaad..dc1f4cb 100644 --- a/sys/kern/uipc_socket2.c +++ b/sys/kern/uipc_socket2.c @@ -422,9 +422,7 @@ sbreserve(sb, cc, so, td) * td will only be NULL when we're in an interrupt * (e.g. in tcp_input()) */ - if (sb_max < MSIZE + MCLBYTES) - sb_max = MSIZE + MCLBYTES; - if ((u_quad_t)cc > (u_quad_t)(MCLBYTES * (sb_max / (MSIZE + MCLBYTES)))) + if ((u_quad_t)cc > (u_quad_t)sb_max * MCLBYTES / (MSIZE + MCLBYTES)) return (0); if (!chgsbsize(so->so_cred->cr_uidinfo, &sb->sb_hiwat, cc, td ? td->td_proc->p_rlimit[RLIMIT_SBSIZE].rlim_cur : RLIM_INFINITY)) { |