mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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
1 changed files with 4 additions and 2 deletions
|
|
@ -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…
Reference in a new issue