diff options
| author | Don Lewis <truckman@FreeBSD.org> | 2004-02-26 00:27:04 +0000 |
|---|---|---|
| committer | Don Lewis <truckman@FreeBSD.org> | 2004-02-26 00:27:04 +0000 |
| commit | 47934cef8f8eae0614799485658acebe190602f7 (patch) | |
| tree | d1174aae4c9e291961c623eba11458d6d2058f11 /sys/netinet/tcp_subr.c | |
| parent | 049ffe98a8458044c1c409b9c0e4ac9fccd15f33 (diff) | |
Notes
Diffstat (limited to 'sys/netinet/tcp_subr.c')
| -rw-r--r-- | sys/netinet/tcp_subr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index 210a582c895d..10d0cd6cbf3c 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -859,8 +859,10 @@ tcp_pcblist(SYSCTL_HANDLER_ARGS) INP_INFO_RUNLOCK(&tcbinfo); splx(s); - sysctl_wire_old_buffer(req, 2 * (sizeof xig) + error = sysctl_wire_old_buffer(req, 2 * (sizeof xig) + n * sizeof(struct xtcpcb)); + if (error != 0) + return (error); xig.xig_len = sizeof xig; xig.xig_count = n; |
