diff --git a/debian/patches/series b/debian/patches/series index b720a9c28..a777d8c2b 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -37,6 +37,7 @@ sipwise/sca-add-pai_avp-parameter.patch upstream/rtpengine_rework_rtpp_flags.patch upstream/cfgutils-expose-optional-second-string-key-for-lock.patch upstream/cfgutils-initialize-the-optional-key.patch +upstream/dialog-don-t-complain-if-dst_var-doesn-t-exist.patch ### relevant for upstream sipwise/dialplan-don-t-stop-loading-rules-on-error.patch sipwise/kamctl-TMPDIR-config.patch diff --git a/debian/patches/upstream/dialog-don-t-complain-if-dst_var-doesn-t-exist.patch b/debian/patches/upstream/dialog-don-t-complain-if-dst_var-doesn-t-exist.patch new file mode 100644 index 000000000..3fe4f8897 --- /dev/null +++ b/debian/patches/upstream/dialog-don-t-complain-if-dst_var-doesn-t-exist.patch @@ -0,0 +1,22 @@ +From: Victor Seva +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;