X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mod_auth_gssapi.git;a=blobdiff_plain;f=src%2Fmod_auth_gssapi.c;h=39d63a59c3098f543dac721d1a6ed67e92c49cf1;hp=f0fa83fac240a75b92dbbc56bd340e6b8f809b1e;hb=8c089a89fae54236c7e05c8e153ecf1a75e27bbf;hpb=4160a7799f7bd642827f72c6af0fb79c660c2234 diff --git a/src/mod_auth_gssapi.c b/src/mod_auth_gssapi.c index f0fa83f..39d63a5 100644 --- a/src/mod_auth_gssapi.c +++ b/src/mod_auth_gssapi.c @@ -424,8 +424,8 @@ static int mag_auth(request_rec *req) if (mc) { /* register the context in the memory pool, so it can be freed * when the connection/request is terminated */ - apr_pool_userdata_set(mc, "mag_conn_ptr", - mag_conn_destroy, mc->parent); + apr_pool_cleanup_register(mc->parent, (void *) mc, + mag_conn_destroy, apr_pool_cleanup_null); if (mc->established && !auth_header) { ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, req,