Skip to content

Commit

Permalink
don't request encrypt when pending
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-szczepanek-arm committed Mar 22, 2018
1 parent 81cb1f9 commit 6833c79
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 6833c79

Please sign in to comment.