From: Joshua Colp Date: Wed, 6 Jun 2007 23:38:15 +0000 (+0000) Subject: Properly handle cases where a stream can't be written to. (issue #9757 reported by... X-Git-Tag: 1.4.5~52 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=928e69408ec9276ed14586aa22054b6a61ae65ae;p=thirdparty%2Fasterisk.git Properly handle cases where a stream can't be written to. (issue #9757 reported by junky) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67924 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/file.c b/main/file.c index 91c863b6f2..e86a8d497f 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;