From bb6a7ebe15d8ccb82a6de6726cd72950f085a178 Mon Sep 17 00:00:00 2001 From: Lukasz Rymanowski Date: Mon, 3 Nov 2014 10:35:56 +0100 Subject: [PATCH] shared/hfp: Minor fix in container close function 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 e0475743d..e375d2741 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; } -- 2.47.3