OSDN Git Service

Fix memory corruption of BLE whitelist hashmap
authorNitin Arora <niarora@codeaurora.org>
Fri, 21 Aug 2015 19:34:14 +0000 (12:34 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Tue, 25 Aug 2015 16:31:11 +0000 (09:31 -0700)
commitb74604341c60628dc7bc8e8e69e3ce2acb4a5373
treeccd8e46596aa3621b7b9f1960783cc6ed17c7569
parentaa41fec0e36653e828bfc2a54fca11447ed56cc5
Fix memory corruption of BLE whitelist hashmap

When adding devices to the whitelist for LE background connections, a
local variable is used as the hashmap key, preventing any successful
lookups going forward. Thus the device will repeatedly add the same
device to the whitelist and preventing successful connections going
forward.

Bug: 23423602
Change-Id: I3d2590c0a1dd66c6e1864ea53f875a713660b645
stack/btm/btm_ble_bgconn.c