summaryrefslogtreecommitdiffhomepage
path: root/src/object
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-03-27 01:53:14 +0000
committermidipix <writeonce@midipix.org>2018-03-29 21:56:28 -0400
commit0a84879cdc3be1bbe3e09dd9fd883a4832e9443e (patch)
tree890b50007ab3c483666d922c6edad95d17c619b5 /src/object
parent227c1560530dc822180e71690795d4a97d2d7310 (diff)
downloadntapi-0a84879cdc3be1bbe3e09dd9fd883a4832e9443e.tar.bz2
ntapi-0a84879cdc3be1bbe3e09dd9fd883a4832e9443e.tar.xz
internals: when running as a local/domain user, cache the domain's admin sid.
Diffstat (limited to 'src/object')
-rw-r--r--src/object/ntapi_tt_keyed_object_directory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object/ntapi_tt_keyed_object_directory.c b/src/object/ntapi_tt_keyed_object_directory.c
index c34d8ec..b79f3b6 100644
--- a/src/object/ntapi_tt_keyed_object_directory.c
+++ b/src/object/ntapi_tt_keyed_object_directory.c
@@ -74,7 +74,7 @@ static void __ipc_sd_init(nt_sd_common_buffer * sd, int fdir)
/* owner sid */
__ntapi->tt_sid_copy(
(nt_sid *)&sd->owner,
- __ntapi_internals()->sid);
+ __ntapi_internals()->user);
/* ace's for LOCAL_SYSTEM, AUTHENTICATED_USERS, and process token user */