diff options
| author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2010-08-27 21:52:54 +0000 |
|---|---|---|
| committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2010-08-27 21:52:54 +0000 |
| commit | 3b00aa65e1f5ddfe65a74b48eff9c7cafde9c65a (patch) | |
| tree | 26c5eb778eacc892a56cba684232ab184f7b2acc | |
| parent | 8af3ed3c83e3075d5b8cc127573e542809e5f8aa (diff) | |
Notes
| -rw-r--r-- | sys/netinet/tcp_subr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index 028fba4b2fa7..2c91b8253d10 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -939,7 +939,7 @@ tcp_pcblist(SYSCTL_HANDLER_ARGS) if (req->oldptr == NULL) { m = syncache_pcbcount(); n = tcbinfo.ipi_count; - n += imax(n / 8, 10); + n += imax((m + n) / 8, 10); req->oldidx = 2 * (sizeof xig) + (m + n) * sizeof(struct xtcpcb); return (0); |
