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 5e0d3cc commit 18c18c6Copy full SHA for 18c18c6
subsys/bluetooth/host/shell/bt.c
@@ -4217,12 +4217,16 @@ static void auth_pincode_entry(struct bt_conn *conn, bool highsec)
4217
enum bt_security_err pairing_accept(struct bt_conn *conn,
4218
const struct bt_conn_pairing_feat *const feat)
4219
{
4220
- bt_shell_print("Remote pairing features: "
4221
- "IO: 0x%02x, OOB: %d, AUTH: 0x%02x, Key: %d, "
4222
- "Init Kdist: 0x%02x, Resp Kdist: 0x%02x",
4223
- feat->io_capability, feat->oob_data_flag,
4224
- feat->auth_req, feat->max_enc_key_size,
4225
- feat->init_key_dist, feat->resp_key_dist);
+ if (feat != NULL) {
+ bt_shell_print("Remote pairing features: "
+ "IO: 0x%02x, OOB: %d, AUTH: 0x%02x, Key: %d, "
+ "Init Kdist: 0x%02x, Resp Kdist: 0x%02x",
+ feat->io_capability, feat->oob_data_flag,
+ feat->auth_req, feat->max_enc_key_size,
4226
+ feat->init_key_dist, feat->resp_key_dist);
4227
+ } else {
4228
+ bt_shell_print("Remote pairing");
4229
+ }
4230
4231
return BT_SECURITY_ERR_SUCCESS;
4232
}
0 commit comments