X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mod_auth_gssapi.git;a=blobdiff_plain;f=src%2Fmod_auth_gssapi.c;h=a88b653870980b71163e9da9125343491a9c6c7f;hp=d351777374922d008041caf64aff09363a8d0438;hb=9cfa62da9119d2cd62314e5328215f8ea45c64b1;hpb=c1b6fcaea24a51a235f62a7bb03767a120b24872 diff --git a/src/mod_auth_gssapi.c b/src/mod_auth_gssapi.c index d351777..a88b653 100644 --- a/src/mod_auth_gssapi.c +++ b/src/mod_auth_gssapi.c @@ -579,6 +579,10 @@ static int mag_auth(request_rec *req) goto done; } if (auth_type == AUTH_TYPE_BASIC) { + if (mc) { + apr_pool_cleanup_run(mc->parent, mc, mag_conn_destroy); + mc = NULL; + } while (maj == GSS_S_CONTINUE_NEEDED) { gss_release_buffer(&min, &input); /* output and input are inverted here, this is intentional */