From: Samuel Cabrero Date: Mon, 26 Oct 2020 16:35:22 +0000 (+0100) Subject: Avoid infinite loop in admin.cgi when negotiate is used X-Git-Tag: v2.4b1~212^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4521ed0df7e625ccf2bc079bab6f48c46ef9bf9;p=thirdparty%2Fcups.git Avoid infinite loop in admin.cgi when negotiate is used SetAuthorizationString with NULL argument sets an empty string. Related: #5596 Signed-off-by: Samuel Cabrero --- diff --git a/cups/auth.c b/cups/auth.c index db45bbba68..f2409350aa 100644 --- a/cups/auth.c +++ b/cups/auth.c @@ -295,7 +295,7 @@ cupsDoAuthentication( } } - if (http->authstring) + if (http->authstring && http->authstring[0]) { DEBUG_printf(("1cupsDoAuthentication: authstring=\"%s\".", http->authstring));