summaryrefslogtreecommitdiff
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
commit25f66c810a7eceabfb8eefd1e8473b809ebe3aa9 (patch)
tree9a2de9e0fc8f9c1098c38ab6af0dac294da86a2c
parent5a74bdd7aaf644fc3de94b26d3c85e088211067a (diff)
downloadsamba-25f66c810a7eceabfb8eefd1e8473b809ebe3aa9.tar.gz
samba-25f66c810a7eceabfb8eefd1e8473b809ebe3aa9.tar.bz2
samba-25f66c810a7eceabfb8eefd1e8473b809ebe3aa9.zip
Fix for bug 282 that didn't get checked in.
(This used to be commit e3f5afb83142f44369dcd341d6e66ed2fe51248f)
-rw-r--r--source3/nsswitch/winbindd_ads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_ads.c b/source3/nsswitch/winbindd_ads.c
index bbb860e4c1..41dffc3ab6 100644
--- a/source3/nsswitch/winbindd_ads.c
+++ b/source3/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;
}