diff --git a/src/common/guac_recording.c b/src/common/guac_recording.c index 461b80e8..709375f1 100644 --- a/src/common/guac_recording.c +++ b/src/common/guac_recording.c @@ -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 */ /* Lock entire output file for writing by the current process */