File cups-branch-2.2-commit-b643d6ba92f00752aa5e74ff86ad3974334914c1.diff of Package cups.35333
From b643d6ba92f00752aa5e74ff86ad3974334914c1 Mon Sep 17 00:00:00 2001
From: Michael R Sweet <michael.r.sweet@gmail.com>
Date: Wed, 11 Apr 2018 22:03:57 -0400
Subject: [PATCH] Fix cups_auth_find for schemes without parameters.
---
cups/auth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cups/auth.c b/cups/auth.c
index 5a13de008c..740b079891 100644
--- a/cups/auth.c
+++ b/cups/auth.c
@@ -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...