kkamikakoi / btstack

Automatically exported from code.google.com/p/btstack
0 stars 0 forks source link

Reject connection when PSM == SDP #378

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Incoming SDP connection will still be rejected even if 
l2cap_security_level_0_allowed_for_PSM() returns true.

I think that's a bug in l2cap.c, line 914.

The condition should be

!l2cap_security_level_0_allowed_for_PSM(psm)

other than

l2cap_security_level_0_allowed_for_PSM(psm).

Sorry for my poor English.

Original issue reported on code.google.com by liyixi...@gmail.com on 5 Feb 2014 at 7:11

GoogleCodeExporter commented 8 years ago
Thanks for spotting this. You're right. I've fixed it in r2354

Original comment by matthias.ringwald@gmail.com on 7 Feb 2014 at 4:33