GUAC-236: Do not attempt to lock/close fd if open fails.
This commit is contained in:
parent
55f5d1cca3
commit
1dfdcec34c
@ -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