Module: kamailio
Branch: master
Commit: bed6bba77a16ec1a840544d674d03d692869c68e
URL:
https://github.com/kamailio/kamailio/commit/bed6bba77a16ec1a840544d674d03d6…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-05-21T08:23:37+02:00
dialog: fix ki_dlg_get_var() introduced previously
---
Modified: src/modules/dialog/dialog.c
---
Diff:
https://github.com/kamailio/kamailio/commit/bed6bba77a16ec1a840544d674d03d6…
Patch:
https://github.com/kamailio/kamailio/commit/bed6bba77a16ec1a840544d674d03d6…
---
diff --git a/src/modules/dialog/dialog.c b/src/modules/dialog/dialog.c
index 5347c0fa1d..6668712dc3 100644
--- a/src/modules/dialog/dialog.c
+++ b/src/modules/dialog/dialog.c
@@ -1549,14 +1549,14 @@ static sr_kemi_xval_t *ki_dlg_get_var(sip_msg_t *msg, str *sc, str
*sf, str *st,
memset(&_sr_kemi_dialog_xval, 0, sizeof(sr_kemi_xval_t));
- val = ki_dlg_get_var_helper(msg, &sc, &sf, &st, &k);
+ val = ki_dlg_get_var_helper(msg, sc, sf, st, key);
if(!val) {
sr_kemi_xval_null(&_sr_kemi_dialog_xval, SR_KEMI_XVAL_NULL_NONE);
return &_sr_kemi_dialog_xval;
}
_sr_kemi_dialog_xval.vtype = SR_KEMIP_STR;
- _sr_kemi_dialog_xval.v.s = *pval;
+ _sr_kemi_dialog_xval.v.s = *val;
return &_sr_kemi_dialog_xval;