]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
printing: Fix an uninitialized read
authorVolker Lendecke <vl@samba.org>
Mon, 8 Sep 2025 16:19:01 +0000 (18:19 +0200)
committerJule Anger <janger@samba.org>
Thu, 11 Sep 2025 09:10:16 +0000 (09:10 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15908

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Björn Baumbach <bb@sernet.de>
Autobuild-User(master): Björn Baumbach <bb@sernet.de>
Autobuild-Date(master): Tue Sep  9 11:06:34 UTC 2025 on atb-devel-224

(cherry picked from commit a6dcf78483d7ae492e695d30c5c783df8e7879d8)

source3/printing/print_generic.c

index d5bfa9ea52764e89e5dd5087d19101020d23e213..7c7a14de045ec4c4744dd97b5e78c385c440d6b3 100644 (file)
@@ -161,7 +161,7 @@ static int generic_queue_get(const char *printer_name,
                              print_status_struct *status)
 {
        char **qlines;
-       int fd;
+       int fd = -1;
        int numlines, i, qcount;
        print_queue_struct *queue = NULL;