commit | efa5991fc7dc3b9b74b73966a4bf5cd5aad9f06a | [log] [tgz] |
---|---|---|
author | Pavlin Radoslavov <pavlin@google.com> | Wed Jul 29 16:52:47 2015 -0700 |
committer | Pavlin Radoslavov <pavlin@google.com> | Wed Jul 29 17:00:23 2015 -0700 |
tree | 5af379a3605a4116561b960bd94d91075c5529fb | |
parent | 48a4b9cd18a306a45249898008c73f80fb3b9d48 [diff] |
Fix a NULL-pointer crash It seems that the current implementation of btm_sec_encrypt_change() does not handle the case when it is called with an invalid handle, such as inside file btu_hcif.c : case HCI_SET_CONN_ENCRYPTION: /* Device refused to start encryption. ... */ btm_sec_encrypt_change(BTM_INVALID_HCI_HANDLE, ...) Bug: 22791224 Change-Id: Ide9404d0c82819399cf258ae3f90c25b352f1e20