]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
delete response only when not NULL 245/head
authormohitmo <mohitmohan12@gmail.com>
Wed, 17 Jun 2020 07:41:36 +0000 (13:11 +0530)
committermohitmo <mohitmohan12@gmail.com>
Wed, 17 Jun 2020 07:41:36 +0000 (13:11 +0530)
utils/cups-browsed.c

index f2cc63b110eb1806fe8d766a84f64a681d73a4b1..e2defc6c660d33c5ac3e9b4767aa9415ed5a67ea 100644 (file)
@@ -7833,10 +7833,10 @@ gboolean update_cups_queues(gpointer unused) {
         else {
           debug_printf ("CUPS queue with URI %s found, but with \"printer-name\" %s", uri, ippGetString(attr, 0, NULL));
         }
+
+        ippDelete(response);
       }
 
-      ippDelete(response);
-   
       if (dest) {
        /* CUPS has found a queue with this name.
           Either CUPS generates a temporary queue here or we have already