Browse code

modules/ims_registrar_scscf: safety check for log line when recieving an SAR_UNREGISTERED_USER response

Camille Oudot authored on 28/05/2013 15:53:07
Showing 1 changed files
... ...
@@ -237,7 +237,11 @@ void async_cdp_callback(int is_timeout, void *param, AAAMessage *saa, long elaps
237 237
             goto error;
238 238
         }
239 239
         
240
-        LM_DBG("Updated contacts: %.*s\n", data->contact_header->data_len, data->contact_header->buf);
240
+        if (data->contact_header) {
241
+            LM_DBG("Updated contacts: %.*s\n", data->contact_header->data_len, data->contact_header->buf);
242
+        } else {
243
+            LM_DBG("Updated unreg contact\n");
244
+        }
241 245
         
242 246
     }
243 247