svn commit: samba r16396 - in branches/SAMBA_3_0/source/lib: .
jra at samba.org
jra at samba.org
Tue Jun 20 01:32:52 GMT 2006
Author: jra
Date: 2006-06-20 01:32:50 +0000 (Tue, 20 Jun 2006)
New Revision: 16396
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16396
Log:
Klocwork #1170. Null deref.
Jeremy.
Modified:
branches/SAMBA_3_0/source/lib/privileges.c
Changeset:
Modified: branches/SAMBA_3_0/source/lib/privileges.c
===================================================================
--- branches/SAMBA_3_0/source/lib/privileges.c 2006-06-20 01:32:45 UTC (rev 16395)
+++ branches/SAMBA_3_0/source/lib/privileges.c 2006-06-20 01:32:50 UTC (rev 16396)
@@ -530,6 +530,10 @@
TDB_CONTEXT *tdb = get_account_pol_tdb();
PRIV_SID_LIST priv;
+ if (!tdb) {
+ return NT_STATUS_ACCESS_DENIED;
+ }
+
ZERO_STRUCT(priv);
se_priv_copy( &priv.privilege, &se_priv_none );
More information about the samba-cvs
mailing list