res_pjsip_session.c: Fix off nominal crash potential in debug message.

Change-Id: I09928297927ee85f7655289acee3a586816466bc
This commit is contained in:
Richard Mudgett 2015-07-10 10:43:40 -05:00
parent 605c5d23a8
commit 53c91737a5
1 changed files with 1 additions and 1 deletions

View File

@ -1161,7 +1161,7 @@ static void session_destructor(void *obj)
struct ast_sip_session_delayed_request *delay;
ast_debug(3, "Destroying SIP session with endpoint %s\n",
ast_sorcery_object_get_id(session->endpoint));
session->endpoint ? ast_sorcery_object_get_id(session->endpoint) : "<none>");
while ((supplement = AST_LIST_REMOVE_HEAD(&session->supplements, next))) {
if (supplement->session_destroy) {