commit | c435a11aae0022fdc4aaa14887431dde72725866 | [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 | 168fc411f5c3a70a8c8b343202f9153af0b2b5b9 | |
parent | 6ed24c43542a7f8e22662be36e5a668f9c511a33 [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