X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fcups.git;a=blobdiff_plain;f=cups%2Frequest.c;h=0e89634ba6d264cfb59cf9798fa2d1a5731df08d;hp=6c2924385bdd79e55bb6f02f0075c2ab99bbca9a;hb=f7deaa1a21758ec90bf23314af018481ea8aea7f;hpb=b86bc4cf571c35972a94a634ea884baff9799fa9 diff --git a/cups/request.c b/cups/request.c index 6c2924385..0e89634ba 100644 --- a/cups/request.c +++ b/cups/request.c @@ -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 $". */