Use provided variable for name instead of one in the structure since the structure...
authorJoshua Colp <jcolp@digium.com>
Tue, 30 Jan 2007 15:39:09 +0000 (15:39 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 30 Jan 2007 15:39:09 +0000 (15:39 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@52860 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 2a20b4d..d3c611d 100644 (file)
@@ -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);