Fix for bug 282 that didn't get checked in.
authorTim Potter <tpot@samba.org>
Fri, 5 Sep 2003 05:57:24 +0000 (05:57 +0000)
committerTim Potter <tpot@samba.org>
Fri, 5 Sep 2003 05:57:24 +0000 (05:57 +0000)
(This used to be commit e3f5afb83142f44369dcd341d6e66ed2fe51248f)

source3/nsswitch/winbindd_ads.c

index bbb860e4c1c23b787d19da8306e3b28beed3f7bd..41dffc3ab604ed87fa5539fdfa116af2bea571e6 100644 (file)
@@ -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;
        }