Module: sip-router
Branch: master
Commit: b5f0a62a2acfbf0f4ce9cd146cb342d717e662a9
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b5f0a62…
Author: Camille Oudot <camille.oudot(a)orange.com>
Committer: Camille Oudot <camille.oudot(a)orange.com>
Date: Tue May 28 17:53:07 2013 +0200
modules/ims_registrar_scscf: safety check for log line when recieving an
SAR_UNREGISTERED_USER response
---
modules/ims_registrar_scscf/cxdx_sar.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/modules/ims_registrar_scscf/cxdx_sar.c
b/modules/ims_registrar_scscf/cxdx_sar.c
index af6b3e9..3c67ce7 100644
--- a/modules/ims_registrar_scscf/cxdx_sar.c
+++ b/modules/ims_registrar_scscf/cxdx_sar.c
@@ -237,7 +237,11 @@ void async_cdp_callback(int is_timeout, void *param, AAAMessage *saa,
long elaps
goto error;
}
- LM_DBG("Updated contacts: %.*s\n",
data->contact_header->data_len, data->contact_header->buf);
+ if (data->contact_header) {
+ LM_DBG("Updated contacts: %.*s\n",
data->contact_header->data_len, data->contact_header->buf);
+ } else {
+ LM_DBG("Updated unreg contact\n");
+ }
}