summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-10-18 21:24:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:33 -0500
commitd273a2ef1d8ef366461638599dafd06826c5a949 (patch)
tree2e5257c745e92079d5e14597cf69b8361089d4a7
parent5afaa37662f09425b1391600a7e2328f20c04a13 (diff)
downloadsamba-d273a2ef1d8ef366461638599dafd06826c5a949.tar.gz
samba-d273a2ef1d8ef366461638599dafd06826c5a949.tar.bz2
samba-d273a2ef1d8ef366461638599dafd06826c5a949.zip
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)
-rw-r--r--source3/nsswitch/winbindd_cache.c2
1 files changed, 1 insertions, 1 deletions
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,