Module: kamailio
Branch: master
Commit: f09a7ea6dcc4f6ccca7caff167ed89de424687b9
URL:
https://github.com/kamailio/kamailio/commit/f09a7ea6dcc4f6ccca7caff167ed89d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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/f09a7ea6dcc4f6ccca7caff167ed89d…
Patch:
https://github.com/kamailio/kamailio/commit/f09a7ea6dcc4f6ccca7caff167ed89d…
---
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;
}