OSDN Git Service

am 3a464232: am ee8592f4: am b7460434: Fix memory corruption of BLE whitelist hashmap
authorNitin Arora <niarora@codeaurora.org>
Tue, 25 Aug 2015 23:37:37 +0000 (23:37 +0000)
committerAndroid Git Automerger <android-git-automerger@android.com>
Tue, 25 Aug 2015 23:37:37 +0000 (23:37 +0000)
* commit '3a464232611595913e0773d215a8e5199f3f9093':
  Fix memory corruption of BLE whitelist hashmap

stack/btm/btm_ble_bgconn.c

index 7629aca..398e6a4 100644 (file)
@@ -76,7 +76,7 @@ static void background_connection_add(bt_bdaddr_t *address) {
   if (!connection) {
     connection = osi_calloc(sizeof(background_connection_t));
     connection->address = *address;
-    hash_map_set(background_connections, address, connection);
+    hash_map_set(background_connections, &(connection->address), connection);
   }
 }