From: Matthew Nicholson Date: Mon, 18 Oct 2010 17:15:24 +0000 (+0000) Subject: Fix the cmgr parser. X-Git-Tag: 1.8.0-rc5~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aa0351aac965bf5a562e69d4d3d1dd9a8fffa72e;p=thirdparty%2Fasterisk.git Fix the cmgr parser. (closes issue 0018152) Reported by: menschentier git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@292122 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/addons/chan_mobile.c b/addons/chan_mobile.c index 1bceed1056..dbe20ee0a5 100644 --- a/addons/chan_mobile.c +++ b/addons/chan_mobile.c @@ -2232,7 +2232,7 @@ static int hfp_parse_cmgr(struct hfp_pvt *hfp, char *buf, char **from_number, ch */ state = 0; s = strlen(buf); - for (i = 0; i < s && s != 6; i++) { + for (i = 0; i < s && state != 6; i++) { switch (state) { case 0: /* search for start of the number section (,) */ if (buf[i] == ',') {