svn commit: samba r14042 - branches/SAMBA_3_0/source/auth
trunk/source/auth
jerry at samba.org
jerry at samba.org
Wed Mar 8 15:18:14 GMT 2006
Author: jerry
Date: 2006-03-08 15:18:14 +0000 (Wed, 08 Mar 2006)
New Revision: 14042
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14042
Log:
check that create_local_nt_token() succeeds before dereferncing the NT_USER_TOKEN*
Modified:
branches/SAMBA_3_0/source/auth/auth_util.c
trunk/source/auth/auth_util.c
Changeset:
Modified: branches/SAMBA_3_0/source/auth/auth_util.c
===================================================================
--- branches/SAMBA_3_0/source/auth/auth_util.c 2006-03-08 15:14:59 UTC (rev 14041)
+++ branches/SAMBA_3_0/source/auth/auth_util.c 2006-03-08 15:18:14 UTC (rev 14042)
@@ -821,6 +821,10 @@
pdb_get_group_sid(server_info->sam_account),
server_info->guest,
server_info->num_sids, server_info->sids);
+
+ if ( !server_info->ptok ) {
+ return NT_STATUS_NO_SUCH_USER;
+ }
/* Convert the SIDs to gids. */
Modified: trunk/source/auth/auth_util.c
===================================================================
--- trunk/source/auth/auth_util.c 2006-03-08 15:14:59 UTC (rev 14041)
+++ trunk/source/auth/auth_util.c 2006-03-08 15:18:14 UTC (rev 14042)
@@ -821,6 +821,10 @@
pdb_get_group_sid(server_info->sam_account),
server_info->guest,
server_info->num_sids, server_info->sids);
+
+ if ( !server_info->ptok ) {
+ return NT_STATUS_NO_SUCH_USER;
+ }
/* Convert the SIDs to gids. */
More information about the samba-cvs
mailing list