summaryrefslogtreecommitdiff
path: root/source4/libcli/security
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli/security')
-rw-r--r--source4/libcli/security/security_token.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source4/libcli/security/security_token.c b/source4/libcli/security/security_token.c
index 42f157aac6..9d37475c7a 100644
--- a/source4/libcli/security/security_token.c
+++ b/source4/libcli/security/security_token.c
@@ -31,15 +31,11 @@ struct security_token *security_token_initialise(TALLOC_CTX *mem_ctx)
{
struct security_token *st;
- st = talloc(mem_ctx, struct security_token);
+ st = talloc_zero(mem_ctx, struct security_token);
if (!st) {
return NULL;
}
- st->num_sids = 0;
- st->sids = NULL;
- st->privilege_mask = 0;
-
return st;
}