[sr-dev] git:4.0: modules/ims_registrar_scscf: safety check for log line when recieving an SAR_UNREGISTERED_USER response

Camille Oudot camille.oudot at orange.com
Mon Jun 10 12:05:43 CEST 2013


Module: sip-router
Branch: 4.0
Commit: c3f4bda21273a5172dbfe048c5a1a14216f6d047
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c3f4bda21273a5172dbfe048c5a1a14216f6d047

Author: Camille Oudot <camille.oudot at orange.com>
Committer: Camille Oudot <camille.oudot at 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");
+        }
         
     }
 




More information about the sr-dev mailing list