Browse code

dialog: fix ki_dlg_get_var() introduced previously

Daniel-Constantin Mierla authored on 21/05/2022 06:21:49
Showing 1 changed files
... ...
@@ -1549,14 +1549,14 @@ static sr_kemi_xval_t *ki_dlg_get_var(sip_msg_t *msg, str *sc, str *sf, str *st,
1549 1549
 
1550 1550
 	memset(&_sr_kemi_dialog_xval, 0, sizeof(sr_kemi_xval_t));
1551 1551
 
1552
-	val = ki_dlg_get_var_helper(msg, &sc, &sf, &st, &k);
1552
+	val = ki_dlg_get_var_helper(msg, sc, sf, st, key);
1553 1553
 	if(!val) {
1554 1554
 		sr_kemi_xval_null(&_sr_kemi_dialog_xval, SR_KEMI_XVAL_NULL_NONE);
1555 1555
 		return &_sr_kemi_dialog_xval;
1556 1556
 	}
1557 1557
 
1558 1558
 	_sr_kemi_dialog_xval.vtype = SR_KEMIP_STR;
1559
-	_sr_kemi_dialog_xval.v.s = *pval;
1559
+	_sr_kemi_dialog_xval.v.s = *val;
1560 1560
 
1561 1561
 	return &_sr_kemi_dialog_xval;
1562 1562