From d273a2ef1d8ef366461638599dafd06826c5a949 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 18 Oct 2006 21:24:20 +0000 Subject: r19399: Now Guenther discovered one crash dereferencing domain->backends, get paranoid. I don't think this can really happen, but let's be sure. Jeremy. (This used to be commit be4709984b8548abf10a5e9fabba21d53440c42a) --- source3/nsswitch/winbindd_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/nsswitch/winbindd_cache.c') diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c index cf161c11b6..baaa5826bb 100644 --- a/source3/nsswitch/winbindd_cache.c +++ b/source3/nsswitch/winbindd_cache.c @@ -1124,7 +1124,7 @@ do_query: centry_put_string(centry, (*info)[i].shell); centry_put_sid(centry, &(*info)[i].user_sid); centry_put_sid(centry, &(*info)[i].group_sid); - if (domain->backend->consistent) { + if (domain->backend && domain->backend->consistent) { /* when the backend is consistent we can pre-prime some mappings */ wcache_save_name_to_sid(domain, NT_STATUS_OK, domain->name, -- cgit