svn commit: lorikeet r783 - in trunk/mod_auth_ntlm_winbind: .
jerry at samba.org
jerry at samba.org
Thu Nov 8 15:25:27 GMT 2007
Author: jerry
Date: 2007-11-08 15:25:26 +0000 (Thu, 08 Nov 2007)
New Revision: 783
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=lorikeet&rev=783
Log:
Ensure that the authenticated user context is set to NULL when freed.
Avoids a segfault. Patch from Dmitry Butskoy <buc at odusz.so-cdu.ru>.
Modified:
trunk/mod_auth_ntlm_winbind/mod_auth_ntlm_winbind.c
Changeset:
Modified: trunk/mod_auth_ntlm_winbind/mod_auth_ntlm_winbind.c
===================================================================
--- trunk/mod_auth_ntlm_winbind/mod_auth_ntlm_winbind.c 2007-11-08 15:22:10 UTC (rev 782)
+++ trunk/mod_auth_ntlm_winbind/mod_auth_ntlm_winbind.c 2007-11-08 15:25:26 UTC (rev 783)
@@ -347,6 +347,7 @@
if ( ctxt->connected_user_authenticated &&
ctxt->connected_user_authenticated->pool ) {
apr_pool_destroy( ctxt->connected_user_authenticated->pool );
+ ctxt->connected_user_authenticated = NULL;
}
return HTTP_UNAUTHORIZED;
@@ -1022,6 +1023,7 @@
if (ctxt->connected_user_authenticated && ctxt->connected_user_authenticated->pool ) {
apr_pool_destroy(ctxt->connected_user_authenticated->pool);
+ ctxt->connected_user_authenticated = NULL;
}
RDEBUG( "declined" );
More information about the samba-cvs
mailing list