Module: kamailio
Branch: 4.3
Commit: 9778b2e82fbc711f9d89cf071b8ced60f8ef5dd8
URL:
https://github.com/kamailio/kamailio/commit/9778b2e82fbc711f9d89cf071b8ced6…
Author: Camille Oudot <camille.oudot(a)orange.com>
Committer: Camille Oudot <camille.oudot(a)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/9778b2e82fbc711f9d89cf071b8ced6…
Patch:
https://github.com/kamailio/kamailio/commit/9778b2e82fbc711f9d89cf071b8ced6…
---
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;