[sr-dev] git:master:f09a7ea6: pv: added missing breaks when parsing $mag() inner name

Daniel-Constantin Mierla miconda at gmail.com
Mon Nov 7 09:56:08 CET 2016


Module: kamailio
Branch: master
Commit: f09a7ea6dcc4f6ccca7caff167ed89de424687b9
URL: https://github.com/kamailio/kamailio/commit/f09a7ea6dcc4f6ccca7caff167ed89de424687b9

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-11-06T22:45:29+01:00

pv: added missing breaks when parsing $mag() inner name

---

Modified: modules/pv/pv_core.c

---

Diff:  https://github.com/kamailio/kamailio/commit/f09a7ea6dcc4f6ccca7caff167ed89de424687b9.diff
Patch: https://github.com/kamailio/kamailio/commit/f09a7ea6dcc4f6ccca7caff167ed89de424687b9.patch

---

diff --git a/modules/pv/pv_core.c b/modules/pv/pv_core.c
index abaa2ec..ea407ab 100644
--- a/modules/pv/pv_core.c
+++ b/modules/pv/pv_core.c
@@ -3153,14 +3153,17 @@ int pv_parse_msg_attrs_name(pv_spec_p sp, str *in)
 			else if(strncmp(in->s, "hdrs", 4)==0)
 				sp->pvp.pvn.u.isname.name.n = 3;
 			else goto error;
+		break;
 		case 5:
 			if(strncmp(in->s, "fline", 5)==0)
 				sp->pvp.pvn.u.isname.name.n = 4;
 			else goto error;
+		break;
 		case 8:
 			if(strncmp(in->s, "body_len", 8)==0)
 				sp->pvp.pvn.u.isname.name.n = 5;
 			else goto error;
+		break;
 		default:
 			goto error;
 	}




More information about the sr-dev mailing list