]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 292122 via svnmerge from
authorMatthew Nicholson <mnicholson@digium.com>
Mon, 18 Oct 2010 17:18:58 +0000 (17:18 +0000)
committerMatthew Nicholson <mnicholson@digium.com>
Mon, 18 Oct 2010 17:18:58 +0000 (17:18 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r292122 | mnicholson | 2010-10-18 12:15:24 -0500 (Mon, 18 Oct 2010) | 5 lines

  Fix the cmgr parser.

  (closes issue 0018152)
  Reported by: menschentier
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@292124 65c4cc65-6c06-0410-ace0-fbb531ad65f3

addons/chan_mobile.c

index 1bceed10566683cf5c3f783e80ccae543f4b5190..dbe20ee0a5cbed854810b3b677b840645dccc2b9 100644 (file)
@@ -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] == ',') {