Inititialise the gid to what standard_sub_advanced wants for 'no value'.
authorAndrew Bartlett <abartlet@samba.org>
Sun, 20 Jan 2002 23:17:36 +0000 (23:17 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 20 Jan 2002 23:17:36 +0000 (23:17 +0000)
Andrew Bartlett
(This used to be commit a96503475d9c1d91c2dfcdebb4f60183432d9aff)

source3/passdb/pdb_tdb.c

index 90b7cb5a0a4489a934651ac853956556c5c64dd1..e05a9066cd35859daa2581c3f8f87df39856b1ce 100644 (file)
@@ -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"));