[sr-dev] git:4.3:9778b2e8: dialog: fix $dlg(from_bindaddr) name parsing

Camille Oudot camille.oudot at orange.com
Mon Apr 11 17:05:45 CEST 2016


Module: kamailio
Branch: 4.3
Commit: 9778b2e82fbc711f9d89cf071b8ced60f8ef5dd8
URL: https://github.com/kamailio/kamailio/commit/9778b2e82fbc711f9d89cf071b8ced60f8ef5dd8

Author: Camille Oudot <camille.oudot at orange.com>
Committer: Camille Oudot <camille.oudot at orange.com>
Date: 2016-04-11T17:05:47+02:00

dialog: fix $dlg(from_bindaddr) name parsing

(cherry picked from commit f95789fd39fcce7b3aa3a0ab8665664afd8bc196)

---

Modified: modules/dialog/dlg_var.c

---

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

---

diff --git a/modules/dialog/dlg_var.c b/modules/dialog/dlg_var.c
index e8c84ed..450f8a5 100644
--- a/modules/dialog/dlg_var.c
+++ b/modules/dialog/dlg_var.c
@@ -877,7 +877,7 @@ int pv_parse_dlg_name(pv_spec_p sp, str *in)
 			else goto error;
 		break;
 		case 13: 
-			if(strncmp(in->s, "from_bindaddr", 20)==0)
+			if(strncmp(in->s, "from_bindaddr", 13)==0)
 				sp->pvp.pvn.u.isname.name.n = 2;
 			else goto error;
 		break;




More information about the sr-dev mailing list