From: Michael R Sweet Date: Thu, 12 Apr 2018 02:03:47 +0000 (-0400) Subject: Fix cups_auth_find for schemes without parameters. X-Git-Tag: v2.3b5~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c944b62ba8ab81f60d8798f4f4005c54f6688c40;p=thirdparty%2Fcups.git Fix cups_auth_find for schemes without parameters. --- diff --git a/cups/auth.c b/cups/auth.c index ab2ce996a0..172f55cfea 100644 --- a/cups/auth.c +++ b/cups/auth.c @@ -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...