Blame SOURCES/ghostscript-cve-2020-16306.patch

8d372f
diff --git a/devices/gdevtsep.c b/devices/gdevtsep.c
8d372f
index 6a50a4a..471fcb5 100644
8d372f
--- a/devices/gdevtsep.c
8d372f
+++ b/devices/gdevtsep.c
8d372f
@@ -2332,6 +2332,7 @@ tiffsep_print_page(gx_device_printer * pdev, FILE * file)
8d372f
                 "\nUse of the %%d format is required to output more than one page to tiffsep.\n"
8d372f
                 "See doc/Devices.htm#TIFF for details.\n\n");
8d372f
        code = gs_note_error(gs_error_ioerror);
8d372f
+       goto done;
8d372f
     }
8d372f
     /* Write the page directory for the CMYK equivalent file. */
8d372f
     if (!tfdev->comp_file) {
8d372f
@@ -2685,6 +2686,7 @@ tiffsep1_print_page(gx_device_printer * pdev, FILE * file)
8d372f
                 "\nUse of the %%d format is required to output more than one page to tiffsep1.\n"
8d372f
                 "See doc/Devices.htm#TIFF for details.\n\n");
8d372f
        code = gs_note_error(gs_error_ioerror);
8d372f
+       goto done;
8d372f
     }
8d372f
     /* If the output file is on disk and the name contains a page #, */
8d372f
     /* then delete the previous file. */