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:
commit
5a3bc7ab04
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user