Skip to content

Commit bd8572e

Browse files
missing return
function would potentially send a reject and accept at the same time
1 parent d216602 commit bd8572e

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)