[asterisk-commits] file: branch 1.4 r119354 - /branches/1.4/main/autoservice.c

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


Author: file
Date: Fri May 30 14:46:37 2008
New Revision: 119354

URL: http://svn.digium.com/view/asterisk?view=rev&rev=119354
Log:
Fix a bug I found while testing for another issue.

Modified:
    branches/1.4/main/autoservice.c

Modified: branches/1.4/main/autoservice.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/autoservice.c?view=diff&rev=119354&r1=119353&r2=119354
==============================================================================
--- branches/1.4/main/autoservice.c (original)
+++ branches/1.4/main/autoservice.c Fri May 30 14:46:37 2008
@@ -160,21 +160,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