diff options
author | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-10-18 17:15:24 +0000 |
---|---|---|
committer | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-10-18 17:15:24 +0000 |
commit | 1d7b4e4ade8aed8b6dc3a955920fcf500250f771 (patch) | |
tree | 5160b99e1470db603ef55fa1c50154804145d529 /addons | |
parent | fcb3822f3f0f3d69d7cfcbb8c5da0ff8aaa514d5 (diff) |
Fix the cmgr parser.
(closes issue 0018152)
Reported by: menschentier
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.8@292122 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'addons')
-rw-r--r-- | addons/chan_mobile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/chan_mobile.c b/addons/chan_mobile.c index 1bceed105..dbe20ee0a 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] == ',') { |