Fix dangling pointer error during compilation

This commit is contained in:
Rahul Tank
2024-02-20 12:22:49 +05:30
committed by Abhinav Kudnar
parent b155956ce7
commit c5f9a60972
+1 -2
View File
@@ -1085,7 +1085,6 @@ ble_gap_master_connect_reattempt(uint16_t conn_handle)
}
/* Utilize cookie to get the index updated correctly for re-attempt */
ble_conn_reattempt[idx].cb_arg = &conn;
conn_cookie_enabled = true;
rc = ble_gap_connect(ble_conn_reattempt[idx].own_addr_type,
@@ -1093,7 +1092,7 @@ ble_gap_master_connect_reattempt(uint16_t conn_handle)
ble_conn_reattempt[idx].duration_ms,
&ble_conn_reattempt[idx].conn_params,
ble_conn_reattempt[idx].cb,
ble_conn_reattempt[idx].cb_arg);
&conn);
if (rc != 0) {
return rc;
}