summaryrefslogtreecommitdiffstats
path: root/source3/lib/domain_namemap.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>1999-01-13 00:40:04 +0000
committerGerald Carter <jerry@samba.org>1999-01-13 00:40:04 +0000
commit7ff9823689638b1a7f82c277a6c825f4ac883d96 (patch)
tree739bafba4ad6b66fd71fd38c93a818a4667c9a36 /source3/lib/domain_namemap.c
parenta75a4daafd86f162c2c79f1b0ece373e7bcb7f65 (diff)
downloadsamba-7ff9823689638b1a7f82c277a6c825f4ac883d96.tar.gz
samba-7ff9823689638b1a7f82c277a6c825f4ac883d96.tar.xz
samba-7ff9823689638b1a7f82c277a6c825f4ac883d96.zip
fixed an uninitialized variable in lookupsmbgrpgid() and
lookupsmbpwuid that was causing a SEGFAULT in smbd. (This used to be commit cabc7e739cb6a6c8dfc4b6988a8ef5837e3312d2)
Diffstat (limited to 'source3/lib/domain_namemap.c')
-rw-r--r--source3/lib/domain_namemap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/domain_namemap.c b/source3/lib/domain_namemap.c
index cb0e315ef5a..f095c8d764b 100644
--- a/source3/lib/domain_namemap.c
+++ b/source3/lib/domain_namemap.c
@@ -1026,6 +1026,7 @@ BOOL lookupsmbpwuid(uid_t uid, DOM_NAME_MAP *gmep)
{
gmep->nt_name = nt_name;
gmep->unix_name = unix_name;
+ gmep->nt_domain = nt_domain;
gmep->unix_id = (uint32)uid;
@@ -1279,6 +1280,7 @@ BOOL lookupsmbgrpgid(gid_t gid, DOM_NAME_MAP *gmep)
{
gmep->nt_name = nt_name;
gmep->unix_name = unix_name;
+ gmep->nt_domain = nt_domain;
gmep->unix_id = (uint32)gid;