We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e917282 commit b28e115Copy full SHA for b28e115
connectivity/FEATURE_BLE/source/generic/SecurityManagerImpl.cpp
@@ -1054,7 +1054,7 @@ ble_error_t SecurityManager::init_signing()
1054
sign_count_t local_sign_counter = _db->get_local_sign_counter();
1055
1056
csrk_t csrk;
1057
- if (!pcsrk) {
+ if (!pcsrk || *pcsrk == csrk_t{}) {
1058
ble_error_t ret = get_random_data(csrk.data(), csrk.size());
1059
if (ret != BLE_ERROR_NONE) {
1060
return ret;
0 commit comments