From: Joshua Colp Date: Tue, 30 Jan 2007 15:39:09 +0000 (+0000) Subject: Use provided variable for name instead of one in the structure since the structure... X-Git-Tag: 1.6.0-beta1~3^2~3329 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1fc144435d425c667c5efbc68d9897d47fba1766;p=thirdparty%2Fasterisk.git 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 --- 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);