summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-07-04 13:19:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:58:11 -0500
commit9b62dfaf19b5fc853393bf367f9c61f547d835d3 (patch)
tree4d9afe0fd48fe9fab183447486be865045521c67 /source3/lib
parent3fe2485d4bd41625e12243b393eed0999e08ef42 (diff)
downloadsamba-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.c3
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