Loading system/btif/src/btif_sdp_server.cc +2 −1 Original line number Diff line number Diff line Loading @@ -214,7 +214,8 @@ static int alloc_sdp_slot(bluetooth_sdp_record* in_record) { static int free_sdp_slot(int id) { int handle = -1; bluetooth_sdp_record* record = NULL; if (id >= MAX_SDP_SLOTS) { if (id < 0 || id >= MAX_SDP_SLOTS) { android_errorWriteLog(0x534e4554, "37502513"); APPL_TRACE_ERROR("%s() failed - id %d is invalid", __func__, id); return handle; } Loading Loading
system/btif/src/btif_sdp_server.cc +2 −1 Original line number Diff line number Diff line Loading @@ -214,7 +214,8 @@ static int alloc_sdp_slot(bluetooth_sdp_record* in_record) { static int free_sdp_slot(int id) { int handle = -1; bluetooth_sdp_record* record = NULL; if (id >= MAX_SDP_SLOTS) { if (id < 0 || id >= MAX_SDP_SLOTS) { android_errorWriteLog(0x534e4554, "37502513"); APPL_TRACE_ERROR("%s() failed - id %d is invalid", __func__, id); return handle; } Loading