Index: main/file.c =================================================================== --- a/main/file.c (revision 322980) +++ b/main/file.c (working copy) @@ -754,6 +754,9 @@ { int whennext = 0; + if (!s->owner) + return -1; + while (!whennext) { struct ast_frame *fr;