]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
cups/dest.c: Set auth as required if not none
authorZdenek Dohnal <zdohnal@redhat.com>
Mon, 2 Sep 2024 10:38:44 +0000 (12:38 +0200)
committerZdenek Dohnal <zdohnal@redhat.com>
Mon, 2 Sep 2024 10:38:44 +0000 (12:38 +0200)
Fixes #1037

cups/dest.c

index 1c8bd6782239ed9c3d61db4d14148cad96e89e06..e971e6df626fcb319cd4a85f07a1d146f9e16a76 100644 (file)
@@ -3148,8 +3148,7 @@ cups_dnssd_query_cb(
       }
       else if (!saw_printer_type)
       {
-       if (!_cups_strcasecmp(key, "air") &&
-                !_cups_strcasecmp(value, "t"))
+       if (!_cups_strcasecmp(key, "air") && _cups_strcasecmp(value, "none"))
          type |= CUPS_PRINTER_AUTHENTICATED;
        else if (!_cups_strcasecmp(key, "bind") &&
                 !_cups_strcasecmp(value, "t"))