Ignore:
Timestamp:
Nov 29, 2012, 1:59:04 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/winbindd/winbindd_ads.c

    r745 r751  
    189189
    190190        rc = ads_search_retry(ads, &res, "(objectCategory=user)", attrs);
    191         if (!ADS_ERR_OK(rc) || !res) {
     191        if (!ADS_ERR_OK(rc)) {
    192192                DEBUG(1,("query_user_list ads_search: %s\n", ads_errstr(rc)));
     193                status = ads_ntstatus(rc);
     194        } else if (!res) {
     195                DEBUG(1,("query_user_list ads_search returned NULL res\n"));
     196
    193197                goto done;
    194198        }
     
    341345
    342346        rc = ads_search_retry(ads, &res, filter, attrs);
    343         if (!ADS_ERR_OK(rc) || !res) {
     347        if (!ADS_ERR_OK(rc)) {
     348                status = ads_ntstatus(rc);
    344349                DEBUG(1,("enum_dom_groups ads_search: %s\n", ads_errstr(rc)));
     350                goto done;
     351        } else if (!res) {
     352                DEBUG(1,("enum_dom_groups ads_search returned NULL res\n"));
    345353                goto done;
    346354        }
     
    551559        rc = ads_search_retry(ads, &msg, ldap_exp, attrs);
    552560        SAFE_FREE(ldap_exp);
    553         if (!ADS_ERR_OK(rc) || !msg) {
     561        if (!ADS_ERR_OK(rc)) {
    554562                DEBUG(1,("query_user(sid=%s) ads_search: %s\n",
    555563                         sid_string_dbg(sid), ads_errstr(rc)));
    556564                return ads_ntstatus(rc);
     565        } else if (!msg) {
     566                DEBUG(1,("query_user(sid=%s) ads_search returned NULL res\n",
     567                         sid_string_dbg(sid)));
     568                return NT_STATUS_INTERNAL_ERROR;
    557569        }
    558570
     
    663675        rc = ads_search_retry(ads, &res, ldap_exp, group_attrs);
    664676
    665         if (!ADS_ERR_OK(rc) || !res) {
     677        if (!ADS_ERR_OK(rc)) {
    666678                DEBUG(1,("lookup_usergroups ads_search member=%s: %s\n", user_dn, ads_errstr(rc)));
    667679                return ads_ntstatus(rc);
    668         }
     680        } else if (!res) {
     681                DEBUG(1,("lookup_usergroups ads_search returned NULL res\n"));
     682                return NT_STATUS_INTERNAL_ERROR;
     683        }
     684
    669685
    670686        count = ads_count_replies(ads, res);
Note: See TracChangeset for help on using the changeset viewer.