mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
Fix a bug I found while testing for another issue.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@119354 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -160,21 +160,20 @@ static void *autoservice_run(void *ign)
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user