OSDN Git Service

Return after removing sample LTK device
authorli-wei.cheng <li-wei.cheng@mediatek.com>
Mon, 20 Jan 2020 07:27:21 +0000 (15:27 +0800)
committerMyles Watson <mylesgw@google.com>
Thu, 6 Aug 2020 18:51:53 +0000 (18:51 +0000)
commitc6879c3fe5833b5198255126342185e45929c577
tree0a2973cfbb9b55162da92e18152d76ccb8671492
parentb2adda81771a671faee455e229471ad2161bd414
Return after removing sample LTK device

Return directly after calling bta_dm_remove_device to
prevent from accessing the invalid security record (p_dev_rec).

Test: Hardcode to test bond with sample key
Tag: #security
Bug: 162497143
Change-Id: Iaa59f3c415dd8066849fd70912fdb83f890229d7
Merged-In: Iaa59f3c415dd8066849fd70912fdb83f890229d7
stack/btm/btm_sec.cc