diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-06 23:38:15 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-06 23:38:15 +0000 |
commit | c16e3c155361ac2a2ccceb82a3ed6e931b3f0407 (patch) | |
tree | 50b8f19eb52084df2b61cbc611ab4f93419429ef /main | |
parent | 20b06d68453a1d693e6d6d74b06569de9fda01eb (diff) |
Properly handle cases where a stream can't be written to. (issue #9757 reported by junky)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@67924 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/file.c b/main/file.c index 91c863b6f..e86a8d497 100644 --- a/main/file.c +++ b/main/file.c @@ -956,6 +956,8 @@ struct ast_filestream *ast_writefile(const char *filename, const char *type, con } if (fs) ast_free(fs); + fs = NULL; + continue; } fs->trans = NULL; fs->fmt = f; |