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

Commit 31db3203 authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by android-build-merger
Browse files

Fix crash on GATT service unregistration am: cac6fc59

am: 011d1fff

Change-Id: I07f5aee7f419d5f0e6cefdfded61191e0a0edfac
parents 3be16052 011d1fff
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -312,7 +312,7 @@ bool SDP_DeleteRecord(uint32_t handle) {
    for (xx = 0; xx < sdp_cb.server_db.num_records; xx++, p_rec++) {
    for (xx = 0; xx < sdp_cb.server_db.num_records; xx++, p_rec++) {
      if (p_rec->record_handle == handle) {
      if (p_rec->record_handle == handle) {
        /* Found it. Shift everything up one */
        /* Found it. Shift everything up one */
        for (yy = xx; yy < sdp_cb.server_db.num_records; yy++, p_rec++) {
        for (yy = xx; yy < sdp_cb.server_db.num_records - 1; yy++, p_rec++) {
          *p_rec = *(p_rec + 1);
          *p_rec = *(p_rec + 1);


          /* Adjust the attribute value pointer for each attribute */
          /* Adjust the attribute value pointer for each attribute */