[asterisk-commits] mmichelson: branch 1.4 r78164 - /branches/1.4/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Aug 6 08:33:08 CDT 2007


Author: mmichelson
Date: Mon Aug  6 08:33:07 2007
New Revision: 78164

URL: http://svn.digium.com/view/asterisk?view=rev&rev=78164
Log:
Fixed a mistake I made in realtime_peer which caused it to return NULL every time.
Thanks to Jon Fealy for emailing me the correction.


Modified:
    branches/1.4/channels/chan_sip.c

Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=78164&r1=78163&r2=78164
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Mon Aug  6 08:33:07 2007
@@ -2510,10 +2510,11 @@
 	} else
 		return NULL;
 
-	if (!var)
+	if (!var) {
 		if(peerlist)
 			ast_config_destroy(peerlist);
 		return NULL;
+	}
 
 	for (tmp = var; tmp; tmp = tmp->next) {
 		/* If this is type=user, then skip this object. */




More information about the asterisk-commits mailing list