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/netncp | |
| parent | 049ffe98a8458044c1c409b9c0e4ac9fccd15f33 (diff) | |
Notes
Diffstat (limited to 'sys/netncp')
| -rw-r--r-- | sys/netncp/ncp_conn.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netncp/ncp_conn.c b/sys/netncp/ncp_conn.c index 00e0fa4e3f4e..41a01ec198f0 100644 --- a/sys/netncp/ncp_conn.c +++ b/sys/netncp/ncp_conn.c @@ -647,8 +647,9 @@ ncp_sysctl_connstat(SYSCTL_HANDLER_ARGS) struct ncp_conn *ncp; /* struct ucred *cred = req->td->td_ucred;*/ - error = 0; - sysctl_wire_old_buffer(req, 0); + error = sysctl_wire_old_buffer(req, 0); + if (error != 0) + return (error); ncp_conn_locklist(LK_SHARED, req->td); error = SYSCTL_OUT(req, &ncp_conn_cnt, sizeof(ncp_conn_cnt)); SLIST_FOREACH(ncp, &conn_list, nc_next) { |
