diff options
author | Gerald Carter <jerry@samba.org> | 2005-07-04 13:19:05 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:58:11 -0500 |
commit | 9b62dfaf19b5fc853393bf367f9c61f547d835d3 (patch) | |
tree | 4d9afe0fd48fe9fab183447486be865045521c67 /source3/lib | |
parent | 3fe2485d4bd41625e12243b393eed0999e08ef42 (diff) | |
download | samba-9b62dfaf19b5fc853393bf367f9c61f547d835d3.tar.gz samba-9b62dfaf19b5fc853393bf367f9c61f547d835d3.tar.bz2 samba-9b62dfaf19b5fc853393bf367f9c61f547d835d3.zip |
r8141: Update volker's valgrind fix in r8097. Same effect, just helps me
to remember what is going on here better.
(This used to be commit 4a8068ce632adc34e88c128c4a6cc4c690d082bf)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/privileges.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/privileges.c b/source3/lib/privileges.c index 30db2fc2bb..05dff33307 100644 --- a/source3/lib/privileges.c +++ b/source3/lib/privileges.c @@ -539,6 +539,9 @@ BOOL grant_privilege(const DOM_SID *sid, const SE_PRIV *priv_mask) { SE_PRIV old_mask, new_mask; + ZERO_STRUCT( old_mask ); + ZERO_STRUCT( new_mask ); + if ( get_privileges( sid, &old_mask ) ) se_priv_copy( &new_mask, &old_mask ); else |