commit | ba2adb70b2c9b6478b194f134650e43269dd002b | [log] [tgz] |
---|---|---|
author | Szymon Janc <szymon.janc@codecoup.pl> | Thu Dec 22 19:48:08 2016 +0100 |
committer | Johan Hedberg <johan.hedberg@intel.com> | Sat Dec 24 08:42:15 2016 +0200 |
tree | 51001c269e57a36f8608e99bef23ebe3e68bcd87 | |
parent | 2ee61f1f9794ac565083ea6b0d7077e70b583ec8 [diff] |
Bluetooth: L2CAP: Fix use of uninitializer pointer l2cap_br_conn_req_reply expects valid bt_l2cap_chan pointer but this is achieved only on accept() callback. Use l2cap_br_send_conn_rsp instead for rejecting cases where no channel was accepted. This also makes success path being 'primary' function path ie erros all always handled inside if() statements. Jira: ZEP-1405 Change-Id: I890b4fcf029afce65eba4f2ebae0b1094feb007f Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>