summaryrefslogtreecommitdiffstats
path: root/source/nsswitch
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-09-05 05:57:24 +0000
committerTim Potter <tpot@samba.org>2003-09-05 05:57:24 +0000
commite3f5afb83142f44369dcd341d6e66ed2fe51248f (patch)
treef07b0542ec33d6269dd29ca997198607d9f9a694 /source/nsswitch
parent62d5611df0cf86c267d7fe820822d4d019ae28bd (diff)
downloadsamba-e3f5afb83142f44369dcd341d6e66ed2fe51248f.tar.gz
samba-e3f5afb83142f44369dcd341d6e66ed2fe51248f.tar.xz
samba-e3f5afb83142f44369dcd341d6e66ed2fe51248f.zip
Fix for bug 282 that didn't get checked in.
Diffstat (limited to 'source/nsswitch')
-rw-r--r--source/nsswitch/winbindd_ads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/nsswitch/winbindd_ads.c b/source/nsswitch/winbindd_ads.c
index bbb860e4c1c..41dffc3ab60 100644
--- a/source/nsswitch/winbindd_ads.c
+++ b/source/nsswitch/winbindd_ads.c
@@ -439,7 +439,7 @@ static BOOL dn_lookup(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx,
SAFE_FREE(ldap_exp);
SAFE_FREE(escaped_dn);
- if (!ADS_ERR_OK(rc)) {
+ if (!ADS_ERR_OK(rc) || !res) {
goto failed;
}