]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/request.c
Load cups into easysw/current.
[thirdparty/cups.git] / cups / request.c
index 6c2924385bdd79e55bb6f02f0075c2ab99bbca9a..0e89634ba6d264cfb59cf9798fa2d1a5731df08d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: request.c 6188 2007-01-10 16:23:06Z mike $"
+ * "$Id: request.c 6253 2007-02-10 18:48:40Z mike $"
  *
  *   IPP utilities for the Common UNIX Printing System (CUPS).
  *
@@ -71,6 +71,9 @@ cupsDoFileRequest(http_t     *http,   /* I - HTTP connection to server */
   int          bytes;                  /* Number of bytes read/written */
   char         buffer[32768];          /* Output buffer */
   http_status_t        expect;                 /* Expect: header to use */
+#ifdef HAVE_AUTHORIZATION_H
+  _cups_globals_t *cg = _cupsGlobals();        /* Global data */
+#endif /* HAVE_AUTHORIZATION_H */
 
 
   DEBUG_printf(("cupsDoFileRequest(%p, %p, \'%s\', \'%s\')\n",
@@ -431,6 +434,18 @@ cupsDoFileRequest(http_t     *http,        /* I - HTTP connection to server */
     }
   }
 
+#ifdef HAVE_AUTHORIZATION_H
+ /*
+  * Delete any authorization reference created for this request...
+  */
+  
+  if (cg->auth_ref)
+  {
+    AuthorizationFree(cg->auth_ref, kAuthorizationFlagDefaults);
+    cg->auth_ref = NULL;
+  }
+#endif /* HAVE_AUTHORIZATION_H */
+
   return (response);
 }
 
@@ -479,5 +494,5 @@ _cupsSetError(ipp_status_t status,  /* I - IPP status code */
 
 
 /*
- * End of "$Id: request.c 6188 2007-01-10 16:23:06Z mike $".
+ * End of "$Id: request.c 6253 2007-02-10 18:48:40Z mike $".
  */