]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Avoid infinite loop in admin.cgi when negotiate is used
authorSamuel Cabrero <scabrero@suse.de>
Mon, 26 Oct 2020 16:35:22 +0000 (17:35 +0100)
committerSamuel Cabrero <scabrero@suse.de>
Tue, 27 Oct 2020 16:30:33 +0000 (17:30 +0100)
SetAuthorizationString with NULL argument sets an empty string.

Related: #5596

Signed-off-by: Samuel Cabrero <scabrero@suse.de>
cups/auth.c

index db45bbba68bd427bed9fa933dacd54c801ec9d48..f2409350aa7bb8dc2fe1ebc6cf4199efc76e13b3 100644 (file)
@@ -295,7 +295,7 @@ cupsDoAuthentication(
     }
   }
 
-  if (http->authstring)
+  if (http->authstring && http->authstring[0])
   {
     DEBUG_printf(("1cupsDoAuthentication: authstring=\"%s\".", http->authstring));