Fix regression from r354484. Don't leak pcb lock if cr_canseeinpcb()
returns non-zero. PR: 242415
This commit is contained in:
parent
61322a0a8a
commit
e5a084d020
@ -2204,9 +2204,11 @@ tcp_pcblist(SYSCTL_HANDLER_ARGS)
|
||||
error = SYSCTL_OUT(req, &xt, sizeof xt);
|
||||
if (error)
|
||||
break;
|
||||
else
|
||||
continue;
|
||||
}
|
||||
} else
|
||||
INP_RUNLOCK(inp);
|
||||
}
|
||||
INP_RUNLOCK(inp);
|
||||
}
|
||||
NET_EPOCH_EXIT(et);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user