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

Commit 13e5ff68 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "RFCOMM: Refuse connection if max RFCOMM ports are used"

parents 98e0f8ef 5ea79566
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -1622,6 +1622,9 @@ static tBTA_JV_PCB* bta_jv_add_rfc_port(tBTA_JV_RFC_CB* p_cb,
        p_pcb->handle = BTA_JV_RFC_H_S_TO_HDL(p_cb->handle, si);
        p_pcb->handle = BTA_JV_RFC_H_S_TO_HDL(p_cb->handle, si);
        VLOG(2) << __func__ << ": p_pcb->handle=" << loghex(p_pcb->handle)
        VLOG(2) << __func__ << ": p_pcb->handle=" << loghex(p_pcb->handle)
                << ", curr_sess=" << p_cb->curr_sess;
                << ", curr_sess=" << p_cb->curr_sess;
      } else {
        LOG(ERROR) << __func__ << ": RFCOMM_CreateConnection failed";
        return NULL;
      }
      }
    } else {
    } else {
      LOG(ERROR) << __func__ << ": cannot create new rfc listen port";
      LOG(ERROR) << __func__ << ": cannot create new rfc listen port";