From 25f66c810a7eceabfb8eefd1e8473b809ebe3aa9 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 5 Sep 2003 05:57:24 +0000 Subject: Fix for bug 282 that didn't get checked in. (This used to be commit e3f5afb83142f44369dcd341d6e66ed2fe51248f) --- source3/nsswitch/winbindd_ads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit