mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
Fix locking issue in ng_btsocket_l2cap_ctloutput()
Submitted by: Heiko Wundram (Beenic) < wundram at beenic dot net > MFC after: 3 days
This commit is contained in:
parent
cbf964029b
commit
b64b9bb278
1 changed files with 4 additions and 2 deletions
|
|
@ -2228,8 +2228,10 @@ ng_btsocket_l2cap_ctloutput(struct socket *so, struct sockopt *sopt)
|
|||
* channel?
|
||||
*/
|
||||
|
||||
if (pcb->state != NG_BTSOCKET_L2CAP_CLOSED)
|
||||
return (EACCES);
|
||||
if (pcb->state != NG_BTSOCKET_L2CAP_CLOSED) {
|
||||
error = EACCES;
|
||||
break;
|
||||
}
|
||||
|
||||
switch (sopt->sopt_name) {
|
||||
case SO_L2CAP_IMTU: /* set incoming MTU */
|
||||
|
|
|
|||
Loading…
Reference in a new issue