[sr-dev] git:master:0046f35f: pv: added breaks in case of mismatching via var name

Daniel-Constantin Mierla miconda at gmail.com
Tue Aug 10 10:11:32 CEST 2021


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-08-10T10:11:16+02:00

pv: added breaks in case of mismatching via var name

---

Modified: src/modules/pv/pv_core.c

---

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

---

diff --git a/src/modules/pv/pv_core.c b/src/modules/pv/pv_core.c
index 44cc551212..352114d259 100644
--- a/src/modules/pv/pv_core.c
+++ b/src/modules/pv/pv_core.c
@@ -4488,6 +4488,7 @@ int pv_parse_via_name(pv_spec_p sp, str *in)
 			if(in->s[0]=='i')
 				sp->pvp.pvn.u.isname.name.n = 7;
 			else goto error;
+		break;
 		case 4:
 			if(strncmp(in->s, "host", 4)==0)
 				sp->pvp.pvn.u.isname.name.n = 0;
@@ -4511,6 +4512,7 @@ int pv_parse_via_name(pv_spec_p sp, str *in)
 			if(strncmp(in->s, "protoid", 7)==0)
 				sp->pvp.pvn.u.isname.name.n = 3;
 			else goto error;
+		break;
 		case 8:
 			if(strncmp(in->s, "received", 8)==0)
 				sp->pvp.pvn.u.isname.name.n = 6;




More information about the sr-dev mailing list