From 1fc144435d425c667c5efbc68d9897d47fba1766 Mon Sep 17 00:00:00 2001 From: Joshua Colp <jcolp@digium.com> Date: Tue, 30 Jan 2007 15:39:09 +0000 Subject: [PATCH] Use provided variable for name instead of one in the structure since the structure was just allocated and will be NULL. (issue #8938 reported by st41ker) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@52860 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 2a20b4d7c6..d3c611df88 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -16011,7 +16011,7 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, str if (realtime) { rpeerobjs++; if (option_debug > 2) - ast_log(LOG_DEBUG,"-REALTIME- peer built. Name: %s. Peer objects: %d\n", peer->name, rpeerobjs); + ast_log(LOG_DEBUG,"-REALTIME- peer built. Name: %s. Peer objects: %d\n", name, rpeerobjs); } else speerobjs++; ASTOBJ_INIT(peer); -- GitLab