diff options
author | Jeremy Allison <jra@samba.org> | 2006-06-20 01:32:50 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:18:51 -0500 |
commit | 69678ce983b81a6534cb2fa1f98856c3addbac85 (patch) | |
tree | bf97a7c883ce06a86a14d41afe62959f7ac3e0c3 /source3 | |
parent | a77a699fe9d7f6d650c520162e139988e4380702 (diff) | |
download | samba-69678ce983b81a6534cb2fa1f98856c3addbac85.tar.gz samba-69678ce983b81a6534cb2fa1f98856c3addbac85.tar.bz2 samba-69678ce983b81a6534cb2fa1f98856c3addbac85.zip |
r16396: Klocwork #1170. Null deref.
Jeremy.
(This used to be commit 220627ab70977a9a26dc0e010f73195c2c87ec96)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/privileges.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/privileges.c b/source3/lib/privileges.c index d77d7857d7..d19592e582 100644 --- a/source3/lib/privileges.c +++ b/source3/lib/privileges.c @@ -530,6 +530,10 @@ NTSTATUS privilege_enumerate_accounts(DOM_SID **sids, int *num_sids) 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 ); |