mirror of https://github.com/sipwise/kamailio.git
Change-Id: I43ecd8863bbf83faadfd42cf0c7fb1237112b838mr13.0
parent
d9b6095307
commit
f836dd4e3b
@ -0,0 +1,22 @@
|
||||
From: Victor Seva <vseva@sipwise.com>
|
||||
Date: Tue, 2 Jul 2024 11:50:37 +0200
|
||||
Subject: dialog: don't complain if dst_var doesn't exist
|
||||
|
||||
Change-Id: I75f9bddd7a58fea63176e63eb075d8c5379162df
|
||||
---
|
||||
src/modules/dialog/dialog.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/modules/dialog/dialog.c b/src/modules/dialog/dialog.c
|
||||
index a0d654d..020e1ef 100644
|
||||
--- a/src/modules/dialog/dialog.c
|
||||
+++ b/src/modules/dialog/dialog.c
|
||||
@@ -1869,7 +1869,7 @@ static int w_dlg_get_var(
|
||||
} else {
|
||||
pv_get_null(msg, NULL, &dst_val);
|
||||
}
|
||||
- if(pv_set_spec_value(msg, dst_pv, 0, &dst_val) != 0) {
|
||||
+ if(pv_set_spec_value(msg, dst_pv, 0, &dst_val) < 0) {
|
||||
LM_ERR("unable to set value to dst_pv\n");
|
||||
if(val)
|
||||
goto error;
|
Loading…
Reference in new issue