Module: sip-router
Branch: 3.2
Commit: 29fec623839ece4e4521995b5cd9fbf1d1c0ae5c
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=29fec62…
Author: Sven Knoblich <sven.knoblich(a)1und1.de>
Committer: Sven Knoblich <sven.knoblich(a)1und1.de>
Date: Fri Mar 16 10:40:56 2012 +0100
modules_k/dialog: fix dlg_var return-value in case of an empty result.
- replace 0 with pv_get_null(...)
(cherry picked from commit eec1c60cb518aa2d37216fb00ef4a2910623c53e)
---
modules_k/dialog/dlg_var.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules_k/dialog/dlg_var.c b/modules_k/dialog/dlg_var.c
index 31afc10..ac0bdf9 100644
--- a/modules_k/dialog/dlg_var.c
+++ b/modules_k/dialog/dlg_var.c
@@ -306,7 +306,7 @@ int pv_get_dlg_variable(struct sip_msg *msg, pv_param_t *param,
pv_value_t *res)
return pv_get_strval(msg, param, res, value);
- return 0;
+ return pv_get_null(msg, param, res);
}
int pv_set_dlg_variable(struct sip_msg* msg, pv_param_t *param, int op, pv_value_t *val)