mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 23:38:23 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user