diff --git a/debian/patches/series b/debian/patches/series index 3619e7c0c..91b4965f6 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -41,6 +41,7 @@ upstream/http_client-Add-parameter-timeout_mode-timeout-in-se.patch upstream/core-timer_proc-don-t-execute-timers-on-destroy_modu.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/cfgt-skip_unknown.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;