From c0d81fcfbf45554b05feb8f9ca4f0f21a90bb980 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Tue, 30 Aug 2011 15:17:47 +0200 Subject: [PATCH] sdptool: Fix dropping of the list head assigning sdp_list_append(0, ...) to "apseq" on line 2591 will drop first item in list got by sdp_list_append three lines before. --- tools/sdptool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/sdptool.c b/tools/sdptool.c index 4e9da64d3..6d7f8aab7 100644 --- a/tools/sdptool.c +++ b/tools/sdptool.c @@ -2581,7 +2581,7 @@ static int add_cip(sdp_session_t *session, svc_info_t *si) proto[0] = sdp_list_append(0, &l2cap); apseq = sdp_list_append(0, proto[0]); proto[0] = sdp_list_append(proto[0], sdp_data_alloc(SDP_UINT16, &psm)); - apseq = sdp_list_append(0, proto[0]); + apseq = sdp_list_append(apseq, proto[0]); sdp_uuid16_create(&cmtp, CMTP_UUID); proto[1] = sdp_list_append(0, &cmtp); -- 2.47.3