Module: sip-router
Branch: master
Commit: 6b0bcff43c0b3c22f399211aeb7e9279f7c35814
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6b0bcff…
Author: Carsten Bock <carsten(a)ng-voice.com>
Committer: Carsten Bock <carsten(a)ng-voice.com>
Date: Mon Dec 9 20:07:12 2013 +0100
ims_registrar_pcscf: Bugfix: Properly handle the case, when we do not have a Asserted
Identity
---
modules/ims_registrar_pcscf/reg_mod.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/modules/ims_registrar_pcscf/reg_mod.c
b/modules/ims_registrar_pcscf/reg_mod.c
index d844832..b2ffe8e 100644
--- a/modules/ims_registrar_pcscf/reg_mod.c
+++ b/modules/ims_registrar_pcscf/reg_mod.c
@@ -394,12 +394,13 @@ static int w_assert_identity(struct sip_msg* _m, char* _d, char*
_preferred_uri)
}
/*
- * Returns the current RTP-Statistics from the RTP-Proxy
+ * Get the asserted Identity for the current user
*/
static int
pv_get_asserted_identity_f(struct sip_msg *msg, pv_param_t *param,
pv_value_t *res)
{
- str * ret_val = get_asserted_identity(msg);
- return pv_get_strval(msg, param, res, ret_val);
+ str * ret_val = get_asserted_identity(msg);
+ if (ret_val != NULL) return pv_get_strval(msg, param, res, ret_val);
+ else return -1;
}