Return-Path: From: Lukasz Rymanowski To: linux-bluetooth@vger.kernel.org Cc: Lukasz Rymanowski Subject: [PATCH v2 05/10] shared/hfp: Minor fix in container close function Date: Mon, 3 Nov 2014 10:35:56 +0100 Message-Id: <1415007361-4177-6-git-send-email-lukasz.rymanowski@tieto.com> In-Reply-To: <1415007361-4177-1-git-send-email-lukasz.rymanowski@tieto.com> References: <1415007361-4177-1-git-send-email-lukasz.rymanowski@tieto.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: When closing container of hfp_context, we should try to move to next field so offset is set correctly to next data. Needed in case of parsing for example: .+CIND: ("call",(0,1)),("callsetup",(0-3))") --- src/shared/hfp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shared/hfp.c b/src/shared/hfp.c index e047574..e375d27 100644 --- a/src/shared/hfp.c +++ b/src/shared/hfp.c @@ -327,6 +327,8 @@ bool hfp_context_close_container(struct hfp_context *context) context->offset++; + next_field(context); + return true; } -- 1.8.4