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

Commit 3f346b38 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov
Browse files

Add a missing error check when processing AVDT_RECONFIG_CFM_EVT event

Bug: 33114181
Test: Code compilation
Change-Id: Ic2d432b651ea80af2b0ff40fdb61221b0fc31f82
parent e692cb19
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -449,6 +449,7 @@ static void bta_av_proc_stream_evt(uint8_t handle, BD_ADDR bd_addr,
      /* copy config params to event message buffer */
      switch (event) {
        case AVDT_RECONFIG_CFM_EVT:
          if (p_msg->msg.hdr.err_code == 0) {
            APPL_TRACE_DEBUG(
              "%s: reconfig cfm event codec info = 0x%06x-%06x-%06x-%02x",
              __func__,
@@ -462,6 +463,7 @@ static void bta_av_proc_stream_evt(uint8_t handle, BD_ADDR bd_addr,
                  (p_msg->msg.reconfig_cfm.p_cfg->codec_info[7] << 8) +
                  p_msg->msg.reconfig_cfm.p_cfg->codec_info[8],
              p_msg->msg.reconfig_cfm.p_cfg->codec_info[9]);
          }
          break;

        case AVDT_CONFIG_IND_EVT: