diff options
Diffstat (limited to 'source3/lib')
-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 ); |