diff options
| author | David Greenman <dg@FreeBSD.org> | 2002-08-16 05:08:46 +0000 |
|---|---|---|
| committer | David Greenman <dg@FreeBSD.org> | 2002-08-16 05:08:46 +0000 |
| commit | 8c71ce8a4e11a0d674763ccbe129b4780ed4eed8 (patch) | |
| tree | 18698452e1a02bd0772aab8ce305ad0fbeac4446 | |
| parent | 19c99159d4b011c6f5a73627a152759eda448377 (diff) | |
Notes
| -rw-r--r-- | sys/kern/uipc_sockbuf.c | 2 | ||||
| -rw-r--r-- | sys/kern/uipc_socket2.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/uipc_sockbuf.c b/sys/kern/uipc_sockbuf.c index 1c1a227a997a..5995b06ac5f9 100644 --- a/sys/kern/uipc_sockbuf.c +++ b/sys/kern/uipc_sockbuf.c @@ -392,7 +392,7 @@ sbreserve(sb, cc, so, td) * td will only be NULL when we're in an interrupt * (e.g. in tcp_input()) */ - if ((u_quad_t)cc > (u_quad_t)sb_max * MCLBYTES / (MSIZE + MCLBYTES)) + if (cc > sb_max / (MSIZE + MCLBYTES) * 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)) { diff --git a/sys/kern/uipc_socket2.c b/sys/kern/uipc_socket2.c index 1c1a227a997a..5995b06ac5f9 100644 --- a/sys/kern/uipc_socket2.c +++ b/sys/kern/uipc_socket2.c @@ -392,7 +392,7 @@ sbreserve(sb, cc, so, td) * td will only be NULL when we're in an interrupt * (e.g. in tcp_input()) */ - if ((u_quad_t)cc > (u_quad_t)sb_max * MCLBYTES / (MSIZE + MCLBYTES)) + if (cc > sb_max / (MSIZE + MCLBYTES) * 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)) { |
