]> 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:47 +0000 (22:03 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Thu, 12 Apr 2018 02:03:47 +0000 (22:03 -0400)
cups/auth.c

index ab2ce996a00c436614b1fa00a39de4c0b412c2c1..172f55cfea44c3ebbfaf76d79b9368075839aa4f 100644 (file)
@@ -614,7 +614,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...