]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/getputfile.c
Merge changes from CUPS 1.4svn-r8606.
[thirdparty/cups.git] / cups / getputfile.c
index 43952dc1f647d219f453e5e3842d33d4dcf2ac1f..a8be5aca0bc134c82e984eef26e7e30a3eb61970 100644 (file)
@@ -123,7 +123,10 @@ cupsGetFd(http_t     *http,                /* I - Connection to server or @code CUPS_HTTP_DEFA
       */
 
       if (cupsDoAuthentication(http, "GET", resource))
+      {
+        status = HTTP_AUTHORIZATION_CANCELED;
         break;
+      }
 
       if (httpReconnect(http))
       {
@@ -390,7 +393,10 @@ cupsPutFd(http_t     *http,                /* I - Connection to server or @code CUPS_HTTP_DEFA
       */
 
       if (cupsDoAuthentication(http, "PUT", resource))
+      {
+        status = HTTP_AUTHORIZATION_CANCELED;
         break;
+      }
 
       if (httpReconnect(http))
       {