Skip to content

Commit 8b94f3b

Browse files
committed
Merge branch 'patch-7' of https://github.com/janjongboom/mbed-os into rollup
2 parents f032c8c + eed2b39 commit 8b94f3b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

features/FEATURE_BLE/source/generic/GenericSecurityManager.tpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -883,9 +883,8 @@ ble_error_t GenericSecurityManager<TPalSecurityManager, SigningMonitor>::init_si
883883
const csrk_t *pcsrk = _db->get_local_csrk();
884884
sign_count_t local_sign_counter = _db->get_local_sign_counter();
885885

886+
csrk_t csrk;
886887
if (!pcsrk) {
887-
csrk_t csrk;
888-
889888
ble_error_t ret = get_random_data(csrk.data(), csrk.size());
890889
if (ret != BLE_ERROR_NONE) {
891890
return ret;

0 commit comments

Comments
 (0)