[Asterisk-code-review] res pjsip session.c: Fix off nominal crash potential in debu... (asterisk[13])

Richard Mudgett asteriskteam at digium.com
Thu Jul 16 12:18:51 CDT 2015


Richard Mudgett has uploaded a new change for review.

  https://gerrit.asterisk.org/906

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

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

Change-Id: I09928297927ee85f7655289acee3a586816466bc
---
M res/res_pjsip_session.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/06/906/1

diff --git a/res/res_pjsip_session.c b/res/res_pjsip_session.c
index 2c2ea61..e6ed645 100644
--- a/res/res_pjsip_session.c
+++ b/res/res_pjsip_session.c
@@ -1161,7 +1161,7 @@
 	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) {

-- 
To view, visit https://gerrit.asterisk.org/906
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I09928297927ee85f7655289acee3a586816466bc
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>



More information about the asterisk-code-review mailing list