s3:passdb fix a compiler warning
authorChristian Ambach <ambi@samba.org>
Thu, 3 May 2012 16:34:32 +0000 (18:34 +0200)
committerChristian Ambach <ambi@samba.org>
Thu, 3 May 2012 21:22:05 +0000 (23:22 +0200)
this one could have caused crashes

Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Thu May  3 23:22:05 CEST 2012 on sn-devel-104

source3/passdb/pdb_ads.c

index f88ad75de7c876f827ce121cfa42ea3ba8e4c0e3..df9b7b3a958a8d85803787edcc3bcd32276a8216 100644 (file)
@@ -2258,7 +2258,7 @@ static bool pdb_ads_sid_to_id(struct pdb_methods *m, const struct dom_sid *sid,
        } else {
                gid_t gid;
                id->type = ID_TYPE_GID;
-               if (!tldap_pull_uint32(msg[0], "gidNumber", gid)) {
+               if (!tldap_pull_uint32(msg[0], "gidNumber", &gid)) {
                        DEBUG(10, ("Did not find gidNumber\n"));
                        goto fail;
                }