Module: kamailio
Branch: 4.4
Commit: d480941d52756a974e9f473b0474e4675c84f862
URL:
https://github.com/kamailio/kamailio/commit/d480941d52756a974e9f473b0474e46…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-05-06T09:19:16+02:00
msrp: fix missed break in parsing pv name
- closes GH #1122
(cherry picked from commit c32ba91fbbe59e144ddcb40be33b3379bcf3d64d)
(cherry picked from commit 1686d9d7519a3a72293245687d307f0d99a2b503)
---
Modified: modules/msrp/msrp_vars.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d480941d52756a974e9f473b0474e46…
Patch:
https://github.com/kamailio/kamailio/commit/d480941d52756a974e9f473b0474e46…
---
diff --git a/modules/msrp/msrp_vars.c b/modules/msrp/msrp_vars.c
index 98452fe..6cbf1a6 100644
--- a/modules/msrp/msrp_vars.c
+++ b/modules/msrp/msrp_vars.c
@@ -46,12 +46,12 @@ int pv_parse_msrp_name(pv_spec_t *sp, str *in)
switch(in->len)
{
- case 3:
+ case 3:
if(strncmp(in->s, "buf", 3)==0)
sp->pvp.pvn.u.isname.name.n = 1;
else goto error;
break;
- case 4:
+ case 4:
if(strncmp(in->s, "body", 4)==0)
sp->pvp.pvn.u.isname.name.n = 2;
else if(strncmp(in->s, "code", 4)==0)
@@ -66,6 +66,7 @@ int pv_parse_msrp_name(pv_spec_t *sp, str *in)
else if(strncmp(in->s, "conid", 5)==0)
sp->pvp.pvn.u.isname.name.n = 21;
else goto error;
+ break;
case 6:
if(strncmp(in->s, "method", 6)==0)
sp->pvp.pvn.u.isname.name.n = 6;
@@ -79,7 +80,7 @@ int pv_parse_msrp_name(pv_spec_t *sp, str *in)
sp->pvp.pvn.u.isname.name.n = 12;
else goto error;
break;
- case 7:
+ case 7:
if(strncmp(in->s, "bodylen", 7)==0)
sp->pvp.pvn.u.isname.name.n = 10;
else if(strncmp(in->s, "transid", 7)==0)
@@ -96,7 +97,7 @@ int pv_parse_msrp_name(pv_spec_t *sp, str *in)
sp->pvp.pvn.u.isname.name.n = 20;
else goto error;
break;
- case 8:
+ case 8:
if(strncmp(in->s, "firsthop", 8)==0)
sp->pvp.pvn.u.isname.name.n = 16;
else if(strncmp(in->s, "prevhops", 8)==0)