diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-09-11 17:00:10 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-09-11 18:46:14 +1000 |
commit | a02a2c3557928e507d1220303d9a3f79e8c46bb1 (patch) | |
tree | 3a02bc933d0c2fca5b678a2130a053497f0f5eaa /source4/libcli/security/security_token.c | |
parent | fdcadb5c3c2e3de1e2d1755653a9d02ccb548db8 (diff) | |
download | samba-a02a2c3557928e507d1220303d9a3f79e8c46bb1.tar.gz samba-a02a2c3557928e507d1220303d9a3f79e8c46bb1.tar.bz2 samba-a02a2c3557928e507d1220303d9a3f79e8c46bb1.zip |
libcli/security Use talloc_zero when making a struct security_token
Diffstat (limited to 'source4/libcli/security/security_token.c')
-rw-r--r-- | source4/libcli/security/security_token.c | 6 |
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; } |