]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
The IPP backend didn't decode the cached auth info properly.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Thu, 7 Jun 2007 00:58:37 +0000 (00:58 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Thu, 7 Jun 2007 00:58:37 +0000 (00:58 +0000)
The scheduler didn't advance the value pointer when parsing an
auth-info-required string from a backend or the printers.conf file.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@6553 7a7537e8-13f0-0310-91df-b6672ffda945

backend/ipp.c
scheduler/printers.c

index 3b3dee1f3d56e354055872c9eb0ed3e609fef25e..0ec8afb23c1598ca175250ea6e49f7292b7494b3 100644 (file)
@@ -107,6 +107,7 @@ main(int  argc,                             /* I - Number of command-line args */
   char         method[255],            /* Method in URI */
                hostname[1024],         /* Hostname */
                username[255],          /* Username info */
+               password_buf[255],      /* Password buffer */
                resource[1024],         /* Resource info (printer name) */
                addrname[256],          /* Address name */
                *optptr,                /* Pointer to URI options */
@@ -517,8 +518,9 @@ main(int  argc,                             /* I - Number of command-line args */
            * Decode password...
            */
 
-           i = sizeof(password);
-           httpDecode64_2(password, &i, aline);
+           i = sizeof(password_buf);
+           httpDecode64_2(password_buf, &i, aline);
+           password = password_buf;
          }
        }
 
index 16c72b6fe1084e2d51be6e8b8d723d6e4f115976..da6c495e0dcb129e1025ecf7e272443a23c5ae8e 100644 (file)
@@ -1580,6 +1580,8 @@ cupsdSetAuthInfoRequired(
       }
       else
         return (0);
+
+      values = (*end) ? end + 1 : end;
     }
 
     if (p->num_auth_info_required == 0)