From d0eaf6352edc29cdc7d170bce106f74f1040e2df Mon Sep 17 00:00:00 2001 From: mike Date: Mon, 14 Mar 2011 22:39:18 +0000 Subject: [PATCH] Handle "canceled" authentication status, too. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@9603 7a7537e8-13f0-0310-91df-b6672ffda945 --- backend/ipp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/ipp.c b/backend/ipp.c index e1d584dbd..3542a7380 100644 --- a/backend/ipp.c +++ b/backend/ipp.c @@ -1471,10 +1471,12 @@ main(int argc, /* I - Number of command-line args */ */ if (ipp_status == IPP_NOT_AUTHORIZED || ipp_status == IPP_FORBIDDEN || + ipp_status == IPP_AUTHENTICATION_CANCELED || ipp_status <= IPP_OK_CONFLICT) fprintf(stderr, "ATTR: auth-info-required=%s\n", auth_info_required); - if (ipp_status == IPP_NOT_AUTHORIZED || ipp_status == IPP_FORBIDDEN) + if (ipp_status == IPP_NOT_AUTHORIZED || ipp_status == IPP_FORBIDDEN || + ipp_status == IPP_AUTHENTICATION_CANCELED) return (CUPS_BACKEND_AUTH_REQUIRED); else if (ipp_status == IPP_INTERNAL_ERROR) return (CUPS_BACKEND_STOP); -- 2.39.5