[asterisk-commits] file: trunk r119355 - in /trunk: ./ main/autoservice.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri May 30 14:47:30 CDT 2008


Author: file
Date: Fri May 30 14:47:30 2008
New Revision: 119355

URL: http://svn.digium.com/view/asterisk?view=rev&rev=119355
Log:
Merged revisions 119354 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r119354 | file | 2008-05-30 16:46:37 -0300 (Fri, 30 May 2008) | 2 lines

Fix a bug I found while testing for another issue.

........

Modified:
    trunk/   (props changed)
    trunk/main/autoservice.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/main/autoservice.c
URL: http://svn.digium.com/view/asterisk/trunk/main/autoservice.c?view=diff&rev=119355&r1=119354&r2=119355
==============================================================================
--- trunk/main/autoservice.c (original)
+++ trunk/main/autoservice.c Fri May 30 14:47:30 2008
@@ -155,21 +155,20 @@
 			continue;
 		}
 
-		for (i = 0; i < x; i++) {
-			struct ast_frame *dup_f;
-
-			if (mons[i] != chan) {
-				continue;
-			}
-
-			if ((dup_f = ast_frdup(f))) {
-				AST_LIST_INSERT_TAIL(&ents[i]->deferred_frames, dup_f, frame_list);
-			}
-			
-			break;
-		}
-
 		if (f) {
+			for (i = 0; i < x; i++) {
+				struct ast_frame *dup_f;
+				
+				if (mons[i] != chan) {
+					continue;
+				}
+				
+				if ((dup_f = ast_frdup(f))) {
+					AST_LIST_INSERT_TAIL(&ents[i]->deferred_frames, dup_f, frame_list);
+				}
+				
+				break;
+			}
 			ast_frfree(f);
 		}
 	}




More information about the asterisk-commits mailing list