missing return

function would potentially send a reject and accept at the same time
pull/7166/head
paul-szczepanek-arm 2018-06-07 17:17:32 +01:00
parent d216602cbb
commit bd8572e20f
1 changed files with 1 additions and 0 deletions

View File

@ -1144,6 +1144,7 @@ void GenericSecurityManager::on_pairing_request(
/* cancel pairing if secure connection paring is not possible */
if (!_legacy_pairing_allowed && !authentication.get_secure_connections()) {
cancelPairingRequest(connection);
return;
}
ControlBlock_t *cb = get_control_block(connection);