Bluetooth: Fix checking wrong variable
Check server instead of psm after lookup. Change-Id: I80fe916432b69b376f04083980f1208aa7befbb1 Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
1bc6597d4d
commit
6e9de099d5
1 changed files with 1 additions and 1 deletions
|
@ -457,7 +457,7 @@ static void le_conn_req(struct bt_l2cap *l2cap, uint8_t ident,
|
|||
|
||||
/* Check if there is a server registered */
|
||||
server = l2cap_server_lookup_psm(psm);
|
||||
if (!psm) {
|
||||
if (!server) {
|
||||
rsp->result = BT_L2CAP_ERR_PSM_NOT_SUPP;
|
||||
goto rsp;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue