fixed type passed to ads_search
authorAndrew Tridgell <tridge@samba.org>
Sun, 9 Dec 2001 00:46:37 +0000 (00:46 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sun, 9 Dec 2001 00:46:37 +0000 (00:46 +0000)
source/nsswitch/winbindd_ads.c

index 09b3fac03c59686d0b64e9962cd08d41eeeffa2c..8ed6e7e2b009f7314a53f265f65d331aae830160 100644 (file)
@@ -42,7 +42,7 @@ int ads_do_search_retry(ADS_STRUCT *ads, const char *bind_path, int scope,
        }
 
        while (count--) {
-               rc = ads_do_search(ads->ld, bind_path, scope, exp, attrs, res);
+               rc = ads_do_search(ads, bind_path, scope, exp, attrs, res);
                if (rc == 0) return rc;
 
                if (*res) ads_msgfree(ads, *res);
@@ -89,7 +89,6 @@ static ADS_STRUCT *ads_cached_connection(struct winbindd_domain *domain)
 {
        ADS_STRUCT *ads;
        int rc;
-       char *password;
 
        if (domain->private) {
                return (ADS_STRUCT *)domain->private;