mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-09 11:28:25 +00:00
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
This commit is contained in:
@@ -2232,7 +2232,7 @@ static int hfp_parse_cmgr(struct hfp_pvt *hfp, char *buf, char **from_number, ch
|
|||||||
*/
|
*/
|
||||||
state = 0;
|
state = 0;
|
||||||
s = strlen(buf);
|
s = strlen(buf);
|
||||||
for (i = 0; i < s && s != 6; i++) {
|
for (i = 0; i < s && state != 6; i++) {
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case 0: /* search for start of the number section (,) */
|
case 0: /* search for start of the number section (,) */
|
||||||
if (buf[i] == ',') {
|
if (buf[i] == ',') {
|
||||||
|
|||||||
Reference in New Issue
Block a user