summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-01-20 23:17:36 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-01-20 23:17:36 +0000
commit93e9fd542dfbde89ab84717db3b0981773b63923 (patch)
treeabf74d691ae7b25d0d578f18809d4b8a786456ef /source3/passdb
parent5b5b6771a84caddd8ebdbb6ad24f5b10b15fce3e (diff)
downloadsamba-93e9fd542dfbde89ab84717db3b0981773b63923.tar.gz
samba-93e9fd542dfbde89ab84717db3b0981773b63923.tar.bz2
samba-93e9fd542dfbde89ab84717db3b0981773b63923.zip
Inititialise the gid to what standard_sub_advanced wants for 'no value'.
Andrew Bartlett (This used to be commit a96503475d9c1d91c2dfcdebb4f60183432d9aff)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/pdb_tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c
index 90b7cb5a0a..e05a9066cd 100644
--- a/source3/passdb/pdb_tdb.c
+++ b/source3/passdb/pdb_tdb.c
@@ -86,7 +86,7 @@ static BOOL init_sam_from_buffer (struct tdbsam_privates *tdb_state,
uint32 lmpwlen, ntpwlen, hourslen;
BOOL ret = True;
BOOL setflag;
- gid_t gid;
+ gid_t gid = -1; /* This is what standard sub advanced expects if no gid is known */
if(sampass == NULL || buf == NULL) {
DEBUG(0, ("init_sam_from_buffer: NULL parameters found!\n"));