summaryrefslogtreecommitdiffstats
path: root/source/nsswitch
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
commitbe4709984b8548abf10a5e9fabba21d53440c42a (patch)
tree739b36b127f41a513ed8c712fa8beed44311a011 /source/nsswitch
parent6089b3007bf92904ca4562d21958d7922143dbcb (diff)
downloadsamba-be4709984b8548abf10a5e9fabba21d53440c42a.tar.gz
samba-be4709984b8548abf10a5e9fabba21d53440c42a.tar.xz
samba-be4709984b8548abf10a5e9fabba21d53440c42a.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.
Diffstat (limited to 'source/nsswitch')
-rw-r--r--source/nsswitch/winbindd_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/nsswitch/winbindd_cache.c b/source/nsswitch/winbindd_cache.c
index cf161c11b6f..baaa5826bbd 100644
--- a/source/nsswitch/winbindd_cache.c
+++ b/source/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,