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

Commit ea5b563b authored by Hansong Zhang's avatar Hansong Zhang Committed by android-build-merger
Browse files

DO NOT MERGE Fix unexpected behavior in SDP am: 6ee3d8e1

am: 24f55d16

Change-Id: I2f6f6d64a86d91bdcd2ae672743be9cdc8d3c2d5
parents 41e83845 24f55d16
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -23,6 +23,8 @@
 *
 ******************************************************************************/

#include <cutils/log.h>

#include <stdlib.h>
#include <string.h>
#include <stdio.h>
@@ -363,6 +365,12 @@ static void process_service_attr_req (tCONN_CB *p_ccb, UINT16 trans_num,
        return;
    }

    if (max_list_len < 4) {
        sdpu_build_n_send_error(p_ccb, trans_num, SDP_ILLEGAL_PARAMETER, NULL);
        android_errorWriteLog(0x534e4554, "68776054");
        return;
    }

    /* Check if this is a continuation request */
    if (*p_req)
    {
@@ -624,6 +632,12 @@ static void process_service_search_attr_req (tCONN_CB *p_ccb, UINT16 trans_num,

    memcpy(&attr_seq_sav, &attr_seq, sizeof(tSDP_ATTR_SEQ)) ;

    if (max_list_len < 4) {
        sdpu_build_n_send_error(p_ccb, trans_num, SDP_ILLEGAL_PARAMETER, NULL);
        android_errorWriteLog(0x534e4554, "68817966");
        return;
    }

    /* Check if this is a continuation request */
    if (*p_req)
    {