/*
- * "$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).
*
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",
}
}
+#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);
}
/*
- * 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 $".
*/