[svn-commits] trunk - r7988 /trunk/channels/chan_sip.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Wed Jan 11 13:23:18 CST 2006


Author: russell
Date: Wed Jan 11 13:23:16 2006
New Revision: 7988

URL: http://svn.digium.com/view/asterisk?rev=7988&view=rev
Log:
fix incorrect return value (issue #6202)

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=7988&r1=7987&r2=7988&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Wed Jan 11 13:23:16 2006
@@ -12066,7 +12066,7 @@
 		found++;
  	} else {
 		if (!(peer = ast_calloc(1, sizeof(*peer))))
-			return -1;
+			return NULL;
 
 		if (realtime)
 			rpeerobjs++;



More information about the svn-commits mailing list