From 05236fa2afd1388cae6834770c8bbdb196da7220 Mon Sep 17 00:00:00 2001 From: Marcin Kraglak Date: Wed, 30 Jul 2014 11:38:50 +0200 Subject: [PATCH] android/bluetooth: Fix loading LTKs --- android/bluetooth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.3