Module: sip-router
Branch: master
Commit: eec1c60cb518aa2d37216fb00ef4a2910623c53e
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=eec1c60…
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(...)
---
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 d7645b8..dfccdd2 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)