Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86ac7ac6 authored by Martin Brabham's avatar Martin Brabham
Browse files

Fix possible NPE for UNKNOWN code path

Bug: 200595320
Test: Manual
Tag: #feature
Change-Id: I89b52553990bf58b8af304bab0bdd4cd8e8cb017
parent 756a12dd
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1497,7 +1497,9 @@ void smp_process_io_response(tSMP_CB* p_cb, tSMP_INT_DATA* p_data) {
          break;
        case SMP_OOB_UNKNOWN:
          LOG_WARN("SMP_MODEL_SEC_CONN_OOB with SMP_OOB_UNKNOWN");
          smp_send_pair_fail(p_cb, NULL);
          tSMP_INT_DATA smp_int_data;
          smp_int_data.status = SMP_PAIR_AUTH_FAIL;
          smp_send_pair_fail(p_cb, &smp_int_data);
          return;
      }
    }