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

Commit 3392a149 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

am: 31db3203

Change-Id: I859d43214c0dbf55d511d153408ceeb702dac659
parents 501e598e 31db3203
Loading
Loading
Loading
Loading
+1 −1
Original line number 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++) {
      if (p_rec->record_handle == handle) {
        /* 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);

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