summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/nsswitch/winbindd_cache.c')
-rw-r--r--source3/nsswitch/winbindd_cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c
index e78410e3a5..912ac162b5 100644
--- a/source3/nsswitch/winbindd_cache.c
+++ b/source3/nsswitch/winbindd_cache.c
@@ -36,6 +36,7 @@ struct cache_entry {
static struct winbind_cache *wcache;
+/* flush the cache */
void wcache_flush_cache(void)
{
extern BOOL opt_nocache;
@@ -500,7 +501,7 @@ static NTSTATUS sid_to_name(struct winbindd_domain *domain,
if (!cache->tdb) goto do_query;
- sidstr = ads_sid_binstring(sid);
+ sidstr = sid_binstring(sid);
centry = wcache_fetch(cache, domain, "SIDTONAME/%s/%s", domain->name, sidstr);
if (!centry) goto do_query;