btmon : SDP continuation list is not reset after use 86/160586/1
authorSeungyoun Ju <sy39.ju@samsung.com>
Fri, 17 Nov 2017 02:24:46 +0000 (11:24 +0900)
committerSeungyoun Ju <sy39.ju@samsung.com>
Fri, 17 Nov 2017 04:56:25 +0000 (13:56 +0900)
[Problem] After receiving attribute response which has continuation
 part more than 7 times, btmon doesn't print the decoded result.
[Cause & Measure] After combining attributes response, cont_list[x].cont is not
 reset.

Change-Id: Id01000bdc5cdc4002a068769850466161a8b4435
Signed-off-by: Seungyoun Ju <sy39.ju@samsung.com>
monitor/sdp.c

index e8523a2..7f62332 100755 (executable)
@@ -495,6 +495,9 @@ static void handle_continuation(struct tid_data *tid, bool nested,
                free(cont_list[n].data);
                cont_list[n].data = NULL;
                cont_list[n].size = 0;
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+               cont_list[n].cont[0] = 0x00;
+#endif
        } else
 #ifdef TIZEN_FEATURE_BLUEZ_MODIFY
                memcpy(cont_list[n].cont, data + bytes, data[bytes] + 1);