From: Christian Ambach Date: Thu, 3 May 2012 16:34:32 +0000 (+0200) Subject: s3:passdb fix a compiler warning X-Git-Tag: samba-4.0.0alpha21~379 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=299c13b7f60f2e3faaf73d6b3370acf99021963d;p=thirdparty%2Fsamba.git s3:passdb fix a compiler warning this one could have caused crashes Autobuild-User: Christian Ambach Autobuild-Date: Thu May 3 23:22:05 CEST 2012 on sn-devel-104 --- diff --git a/source3/passdb/pdb_ads.c b/source3/passdb/pdb_ads.c index f88ad75de7c..df9b7b3a958 100644 --- a/source3/passdb/pdb_ads.c +++ b/source3/passdb/pdb_ads.c @@ -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; }