[sr-dev] git:4.4:1ec385cc: dialog: fix $dlg(from_bindaddr) name parsing
Camille Oudot
camille.oudot at orange.com
Mon Apr 11 17:04:33 CEST 2016
Module: kamailio
Branch: 4.4
Commit: 1ec385ccd9054952b86cc976ae1debe70dc8d297
URL: https://github.com/kamailio/kamailio/commit/1ec385ccd9054952b86cc976ae1debe70dc8d297
Author: Camille Oudot <camille.oudot at orange.com>
Committer: Camille Oudot <camille.oudot at orange.com>
Date: 2016-04-11T17:04:46+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/1ec385ccd9054952b86cc976ae1debe70dc8d297.diff
Patch: https://github.com/kamailio/kamailio/commit/1ec385ccd9054952b86cc976ae1debe70dc8d297.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