diff options
author | Marcin Kraglak <marcin.kraglak@tieto.com> | 2014-07-30 11:38:50 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-07-30 12:32:55 +0200 |
commit | 05236fa2afd1388cae6834770c8bbdb196da7220 (patch) | |
tree | 8ea015fef7c963a1bfa3d986dfa28960b851698f /android/bluetooth.c | |
parent | c1902726cbad2571051e47e3650a5100fa60863b (diff) | |
download | bluez-05236fa2afd1388cae6834770c8bbdb196da7220.tar.gz |
android/bluetooth: Fix loading LTKs
Diffstat (limited to 'android/bluetooth.c')
-rw-r--r-- | android/bluetooth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android/bluetooth.c b/android/bluetooth.c index 563a7436f..a8d85ce59 100644 --- a/android/bluetooth.c +++ b/android/bluetooth.c @@ -2318,7 +2318,7 @@ static void load_ltks(GSList *ltks) cp->key_count = htobs(ltk_count); for (l = ltks, ltk = cp->keys; l != NULL; l = g_slist_next(l), ltk++) - memcpy(ltk, ltks->data, sizeof(*ltk)); + memcpy(ltk, l->data, sizeof(*ltk)); if (mgmt_send(mgmt_if, MGMT_OP_LOAD_LONG_TERM_KEYS, adapter.index, cp_size, cp, load_ltk_complete, NULL, NULL) == 0) |