summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-07-04 13:19:05 +0000
committerGerald Carter <jerry@samba.org>2005-07-04 13:19:05 +0000
commit0d69757b62c65f342e685dce42928fd79cbb51a7 (patch)
tree273b511f196b299cc3cea3563c812e402b55acb7
parent9dc0c55cb0109a3e6737a1323a3bee31f81bae59 (diff)
downloadsamba-0d69757b62c65f342e685dce42928fd79cbb51a7.tar.gz
samba-0d69757b62c65f342e685dce42928fd79cbb51a7.tar.xz
samba-0d69757b62c65f342e685dce42928fd79cbb51a7.zip
r8141: Update volker's valgrind fix in r8097. Same effect, just helps me
to remember what is going on here better.
-rw-r--r--source/lib/privileges.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/lib/privileges.c b/source/lib/privileges.c
index 30db2fc2bb7..05dff33307c 100644
--- a/source/lib/privileges.c
+++ b/source/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