diff options
author | Andreas Schneider <asn@samba.org> | 2011-11-09 20:48:23 +0100 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2011-11-15 14:22:00 +0100 |
commit | 2fe5cd20b463cce5cef4c2376de817bffd78e457 (patch) | |
tree | b6dc2e904926a0b428315ae9d5ae05e61250b978 /source3/winbindd | |
parent | 6cf090070ee9fccf23514f73ed22950764c9f1ca (diff) | |
download | samba-2fe5cd20b463cce5cef4c2376de817bffd78e457.tar.gz samba-2fe5cd20b463cce5cef4c2376de817bffd78e457.tar.bz2 samba-2fe5cd20b463cce5cef4c2376de817bffd78e457.zip |
s3-winbind: Make sure the map is clean.
Diffstat (limited to 'source3/winbindd')
-rw-r--r-- | source3/winbindd/idmap_util.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/winbindd/idmap_util.c b/source3/winbindd/idmap_util.c index a44aaf5fe4..2ddf576dc8 100644 --- a/source3/winbindd/idmap_util.c +++ b/source3/winbindd/idmap_util.c @@ -60,6 +60,7 @@ NTSTATUS idmap_uid_to_sid(const char *domname, struct dom_sid *sid, uid_t uid) } backend: + ZERO_STRUCT(map); map.sid = sid; map.xid.type = ID_TYPE_UID; map.xid.id = uid; @@ -119,6 +120,7 @@ NTSTATUS idmap_gid_to_sid(const char *domname, struct dom_sid *sid, gid_t gid) } backend: + ZERO_STRUCT(map); map.sid = sid; map.xid.type = ID_TYPE_GID; map.xid.id = gid; @@ -177,8 +179,9 @@ NTSTATUS idmap_sid_to_uid(const char *dom_name, struct dom_sid *sid, uid_t *uid) } backend: + ZERO_STRUCT(map); map.sid = sid; - map.xid.type = ID_TYPE_UID; + map.xid.type = ID_TYPE_UID; ret = idmap_backends_sid_to_unixid(dom_name, &map); @@ -250,6 +253,7 @@ NTSTATUS idmap_sid_to_gid(const char *domname, struct dom_sid *sid, gid_t *gid) } backend: + ZERO_STRUCT(map); map.sid = sid; map.xid.type = ID_TYPE_GID; |