[asterisk-commits] kpfleming: trunk r182530 - /trunk/main/channel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 17 09:59:36 CDT 2009


Author: kpfleming
Date: Tue Mar 17 09:59:33 2009
New Revision: 182530

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=182530
Log:
correct logic flaw in ast_answer() changes in r185525

Modified:
    trunk/main/channel.c

Modified: trunk/main/channel.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/main/channel.c?view=diff&rev=182530&r1=182529&r2=182530
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Tue Mar 17 09:59:33 2009
@@ -1837,7 +1837,8 @@
 
 			if (res == 0) {
 				ast_channel_lock(chan);
-				while ((cur = AST_LIST_REMOVE(&frames, AST_LIST_LAST(&frames), frame_list))) {
+				while ((cur = AST_LIST_LAST(&frames))) {
+					AST_LIST_REMOVE(&frames, cur, frame_list);
 					ast_queue_frame_head(chan, cur);
 					ast_frfree(cur);
 				}




More information about the asterisk-commits mailing list