summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
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