Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > b2b31f8f12ce25fb0a2128354ea26724 > files > 48

cups-1.3.7-30.el5.src.rpm

diff -up cups-1.3.7/scheduler/ipp.c.str2782 cups-1.3.7/scheduler/ipp.c
--- cups-1.3.7/scheduler/ipp.c.str2782	2009-02-02 17:04:31.000000000 +0000
+++ cups-1.3.7/scheduler/ipp.c	2009-02-02 17:05:20.000000000 +0000
@@ -1288,7 +1288,8 @@ add_job(cupsd_client_t  *con,		/* I - Cl
     send_http_error(con, status, printer);
     return (NULL);
   }
-  else if ((printer->type & CUPS_PRINTER_AUTHENTICATED) &&
+  else if (printer->num_auth_info_required > 0 &&
+           strcmp(printer->auth_info_required[0], "none") &&
            !con->username[0] && !auth_info)
   {
     send_http_error(con, HTTP_UNAUTHORIZED, printer);