]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:passdb: fix bug #6509: use gid (not uid) cache in fetch_gid_from_cache().
authorMichael Adam <obnox@samba.org>
Fri, 26 Jun 2009 12:09:10 +0000 (14:09 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 11 Aug 2009 13:01:08 +0000 (15:01 +0200)
With the previous code, the cache can never have been hit at all.

Michael

source/passdb/lookup_sid.c

index 25dd73e71e5976236f897d3d73719f7b7b47aadb..10f6cc6830f2a1c0d6a157c440a9003b94450641 100644 (file)
@@ -1085,7 +1085,7 @@ static bool fetch_gid_from_cache(gid_t *pgid, const DOM_SID *psid)
 {
        DATA_BLOB cache_value;
 
-       if (!memcache_lookup(NULL, SID_UID_CACHE,
+       if (!memcache_lookup(NULL, SID_GID_CACHE,
                             data_blob_const(psid, ndr_size_dom_sid(psid, 0)),
                             &cache_value)) {
                return false;