OSDN Git Service

DO NOT MERGE Fix length for L2CAP config type EXT FLOW
[android-x86/system-bt.git] / stack / l2cap / l2c_main.c
index ac74497..92e92ca 100644 (file)
@@ -566,7 +566,7 @@ static void process_l2cap_cmd (tL2C_LCB *p_lcb, UINT8 *p, UINT16 pkt_len)
 
                 case L2CAP_CFG_TYPE_EXT_FLOW:
                     cfg_info.ext_flow_spec_present = TRUE;
-                    if (cfg_len != 1 + 2 + 3 * 4) {
+                    if (cfg_len != 2 + 2 + 3 * 4) {
                         android_errorWriteLog(0x534e4554, "119870451");
                         return;
                     }