diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-09-08 09:15:08 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:30:35 -0500 |
commit | 56a029258f75da967f73e7151292d8cdaf3fecdf (patch) | |
tree | e933155ed278a051b093c9d42c73a6d0b67a5f36 /source3/groupdb | |
parent | fe6644fb5a6097d5e16e2c7667fb49dee1fa94ae (diff) | |
download | samba-56a029258f75da967f73e7151292d8cdaf3fecdf.tar.gz samba-56a029258f75da967f73e7151292d8cdaf3fecdf.tar.bz2 samba-56a029258f75da967f73e7151292d8cdaf3fecdf.zip |
r25024: Fix a whole bunch of Coverity bugs
The callers of get_domain_group_from_sid() with some justification
expected map->gid to be initialized when get_domain_group_from_sid
returned True.
(This used to be commit bc8b74dbfec965ede7bf45118d1a863b28d000fd)
Diffstat (limited to 'source3/groupdb')
-rw-r--r-- | source3/groupdb/mapping.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/groupdb/mapping.c b/source3/groupdb/mapping.c index e14ad7d509..0a733dded9 100644 --- a/source3/groupdb/mapping.c +++ b/source3/groupdb/mapping.c @@ -145,6 +145,7 @@ BOOL get_domain_group_from_sid(DOM_SID sid, GROUP_MAP *map) fstrcpy( map->comment, "Ordinary Users" ); sid_copy( &map->sid, &sid ); map->sid_name_use = SID_NAME_DOM_GRP; + map->gid = (gid_t)-1; return True; } |