Skip to content

Commit fff3564

Browse files
author
Cruz Monrreal
authored
Merge pull request #7166 from paul-szczepanek-arm/fix-cancel-pairing
BLE: fix pairing for misconfigured devices (deny pairing correctly)
2 parents 1cb298a + bd8572e commit fff3564

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

features/FEATURE_BLE/source/generic/GenericSecurityManager.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,6 +1144,7 @@ void GenericSecurityManager::on_pairing_request(
11441144
/* cancel pairing if secure connection paring is not possible */
11451145
if (!_legacy_pairing_allowed && !authentication.get_secure_connections()) {
11461146
cancelPairingRequest(connection);
1147+
return;
11471148
}
11481149

11491150
ControlBlock_t *cb = get_control_block(connection);

0 commit comments

Comments
 (0)