Module: sip-router
Branch: 4.1
Commit: 723bf45840b02e70bcb1c7f9c11a2e64e4f303db
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=723bf45…
Author: Carsten Bock <carsten(a)ng-voice.com>
Committer: Hugh Waite <hugh.waite(a)crocodile-rcs.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
(cherry picked from commit 6b0bcff43c0b3c22f399211aeb7e9279f7c35814)
---
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;
}