Merge pull request #131 from glyptodon/bad-fd

GUAC-236: Do not attempt to lock/close fd if open fails.
This commit is contained in:
James Muehlner 2016-03-16 22:09:34 -07:00
commit 5a3bc7ab04

View File

@ -104,6 +104,10 @@ static int guac_common_recording_open(const char* path,
} }
/* Abort if we've run out of filenames */
if (fd == -1)
return -1;
} /* end if open succeeded */ } /* end if open succeeded */
/* Lock entire output file for writing by the current process */ /* Lock entire output file for writing by the current process */