git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ee6e12
)
s3:passdb: fix bug #6509: use gid (not uid) cache in fetch_gid_from_cache().
author
Michael Adam
<obnox@samba.org>
Fri, 26 Jun 2009 12:09:10 +0000
(14:09 +0200)
committer
Karolin Seeger
<kseeger@samba.org>
Tue, 11 Aug 2009 13:02:00 +0000
(15:02 +0200)
With the previous code, the cache can never have been hit at all.
Michael
source/passdb/lookup_sid.c
patch
|
blob
|
history
diff --git
a/source/passdb/lookup_sid.c
b/source/passdb/lookup_sid.c
index 1971caeab8605ba211f6666209f490be4a380788..3cd7d024f4216e6508ded15928c2c10afb90f375 100644
(file)
--- a/
source/passdb/lookup_sid.c
+++ b/
source/passdb/lookup_sid.c
@@
-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_
U
ID_CACHE,
+ if (!memcache_lookup(NULL, SID_
G
ID_CACHE,
data_blob_const(psid, ndr_size_dom_sid(psid, 0)),
&cache_value)) {
return false;