aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-30 15:39:09 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-30 15:39:09 +0000
commit732bc823e11d3291265249698697bab21eba4bd5 (patch)
tree2cfeb80ebce4136b1709f23365d778fc4af8674c /channels
parent703ef27b30559c5e1d177b9d1b5975adc77987bb (diff)
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: http://svn.digium.com/svn/asterisk/trunk@52860 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 2a20b4d7c..d3c611df8 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);