]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/request.c
Merge changes from CUPS 1.4svn-r8394.
[thirdparty/cups.git] / cups / request.c
index 21387fdee911c2f9b214becf66eb34e1dcc3bca7..2af5c2efd67c1c35ecfc734cdda9837b657cab9b 100644 (file)
@@ -206,6 +206,13 @@ cupsDoIORequest(http_t     *http,  /* I - Connection to server or @code CUPS_HTTP
   DEBUG_printf(("cupsDoIORequest: Request length=%ld, total length=%ld",
                 (long)ippLength(request), (long)length));
 
+ /*
+  * Clear any "Local" authentication data since it is probably stale...
+  */
+
+  if (http->authstring && !strncmp(http->authstring, "Local ", 6))
+    httpSetAuthString(http, NULL, NULL);
+
  /*
   * Loop until we can send the request without authorization problems.
   */
@@ -591,13 +598,6 @@ cupsSendRequest(http_t     *http,  /* I - Connection to server or @code CUPS_HTTP
       return (HTTP_SERVICE_UNAVAILABLE);
     }
 
- /*
-  * Clear any "Local" authentication data since it is probably stale...
-  */
-
-  if (http->authstring && !strncmp(http->authstring, "Local ", 6))
-    httpSetAuthString(http, NULL, NULL);
-
  /*
   * Loop until we can send the request without authorization problems.
   */