don't request encrypt when pending

pull/6932/head
paul-szczepanek-arm 2018-03-22 17:54:13 +00:00
parent 81cb1f9c83
commit 6833c79fb3
1 changed files with 1 additions and 1 deletions

View File

@ -867,7 +867,7 @@ void GenericSecurityManager::on_slave_security_request(
if (pairing_required) {
requestPairing(connection);
} else {
} else if (!cb->encryption_requested) {
/* this will refresh keys if encryption is already present */
enable_encryption(connection);
}