]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix cups_auth_find for schemes without parameters.
authorMichael R Sweet <michael.r.sweet@gmail.com>
Thu, 12 Apr 2018 02:03:57 +0000 (22:03 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Thu, 12 Apr 2018 02:03:57 +0000 (22:03 -0400)
cups/auth.c

index 5a13de008cf2848aff73dc1d1ae07f6edcba103b..740b079891c6efdb0370a719716fbc493fe1beb3 100644 (file)
@@ -620,7 +620,7 @@ cups_auth_find(const char *www_authenticate,        /* I - Pointer into WWW-Authenticat
     * See if this is "Scheme" followed by whitespace or the end of the string.
     */
 
-    if (!strncmp(www_authenticate, scheme, schemelen) && (isspace(www_authenticate[schemelen] & 255) || !www_authenticate[schemelen]))
+    if (!strncmp(www_authenticate, scheme, schemelen) && (isspace(www_authenticate[schemelen] & 255) || www_authenticate[schemelen] == ',' || !www_authenticate[schemelen]))
     {
      /*
       * Yes, this is the start of the scheme-specific information...