Fix whileloop does not end issue
authorWootak Jung <wootak.jung@samsung.com>
Thu, 18 Mar 2021 05:32:12 +0000 (14:32 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Sun, 11 Apr 2021 23:40:16 +0000 (08:40 +0900)
src/tds-api.c

index 6b7415e5f9dd58656f63736ff9f87a6bed036148..52fb2540f05db926e3062728fa87562508e709f3 100644 (file)
@@ -141,6 +141,7 @@ static int __tds_parse_transport_blocks(tds_role_e search_role,
                TDS_INFO("Transport Block Role: %d, search_role: %d", flags & 0x03, search_role);
                if (search_role != TDS_ROLE_BOTH && (flags & 0x03) != search_role) {
                        TDS_INFO("Role Not Matched");
+                       index = index + data[index] + 3;
                        continue;
                }