From: AZero13 Date: Tue, 4 Nov 2025 00:22:51 +0000 (-0500) Subject: Set fd to -1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1405%2Fhead;p=thirdparty%2Fcups.git Set fd to -1 --- diff --git a/tools/ippeveprinter.c b/tools/ippeveprinter.c index d6946a883b..edb18378af 100644 --- a/tools/ippeveprinter.c +++ b/tools/ippeveprinter.c @@ -2094,6 +2094,7 @@ finish_document_data( // Close the file descriptor if (close(job->fd)) { + job->fd = -1; respond_ipp(client, IPP_STATUS_ERROR_INTERNAL, "Unable to close print file: %s", strerror(errno)); goto cleanup_and_abort; }