Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd69a03a authored by Gustavo Padovan's avatar Gustavo Padovan
Browse files

Bluetooth: Fix wrong comparison in listen()



We should check for the pi->scid there.

Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent 58d35f87
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -269,7 +269,7 @@ static int l2cap_sock_listen(struct socket *sock, int backlog)
		goto done;
	}

	if (!l2cap_pi(sk)->psm && !l2cap_pi(sk)->dcid) {
	if (!l2cap_pi(sk)->psm && !l2cap_pi(sk)->scid) {
		bdaddr_t *src = &bt_sk(sk)->src;
		u16 psm;