[asterisk-commits] file: trunk r52860 - /trunk/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Jan 30 08:39:10 MST 2007


Author: file
Date: Tue Jan 30 09:39:09 2007
New Revision: 52860

URL: http://svn.digium.com/view/asterisk?view=rev&rev=52860
Log:
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)

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=52860&r1=52859&r2=52860
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Tue Jan 30 09:39:09 2007
@@ -16011,7 +16011,7 @@
 		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);



More information about the asterisk-commits mailing list