Fix pointer return bug in get_unix_attributes()
authorTim Potter <tpot@samba.org>
Wed, 14 May 2003 00:58:41 +0000 (00:58 +0000)
committerTim Potter <tpot@samba.org>
Wed, 14 May 2003 00:58:41 +0000 (00:58 +0000)
(This used to be commit 7aa54f0a7f3bcfb5d9560ca3bb88e1549b7ce421)

source3/passdb/pdb_ldap.c

index 8f4f04d57ed76b55e85071f51e796d5e89d10562..b044850948449f510113ed8b378c44bc44b3b967 100644 (file)
@@ -1565,7 +1565,7 @@ static BOOL get_unix_attributes (struct ldapsam_privates *ldap_state,
        if (!get_single_attribute(ldap_state->ldap_struct, entry, "gidNumber", temp))
                return False;
        
-       gid = (gid_t)atol(temp);
+       *gid = (gid_t)atol(temp);
 
        pdb_set_unix_homedir(sampass, homedir, PDB_SET);