svn commit: samba r16395 - in trunk/source/lib: .

jra at samba.org jra at samba.org
Tue Jun 20 01:32:47 GMT 2006


Author: jra
Date: 2006-06-20 01:32:45 +0000 (Tue, 20 Jun 2006)
New Revision: 16395

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16395

Log:
Klocwork #1170. Null deref.
Jeremy.

Modified:
   trunk/source/lib/privileges.c


Changeset:
Modified: trunk/source/lib/privileges.c
===================================================================
--- trunk/source/lib/privileges.c	2006-06-20 01:27:42 UTC (rev 16394)
+++ trunk/source/lib/privileges.c	2006-06-20 01:32:45 UTC (rev 16395)
@@ -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