Ignore:
Timestamp:
Jul 3, 2008, 11:23:12 AM (17 years ago)
Author:
Paul Smedley
Message:

Update source to 3.2.0 GA level

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/samba/source/libsmb/namequery.c

    r136 r138  
    18361836        TALLOC_CTX *ctx = talloc_init("get_dc_list");
    18371837
     1838        *ip_list = NULL;
     1839        *count = 0;
     1840
    18381841        if (!ctx) {
    18391842                return NT_STATUS_NO_MEMORY;
     
    19151918        p = pserver;
    19161919        while (next_token_talloc(ctx, &p, &name, LIST_SEP)) {
    1917                 if (strequal(name, "*")) {
     1920                if (!done_auto_lookup && strequal(name, "*")) {
    19181921                        status = internal_resolve_name(domain, 0x1C, sitename,
    19191922                                                       &auto_ip_list,
     
    20562059  out:
    20572060
     2061        if (!NT_STATUS_IS_OK(status)) {
     2062                SAFE_FREE(return_iplist);
     2063                *ip_list = NULL;
     2064                *count = 0;
     2065        }
     2066
    20582067        SAFE_FREE(auto_ip_list);
    20592068        TALLOC_FREE(ctx);
     
    20752084        enum dc_lookup_type lookup_type = DC_NORMAL_LOOKUP;
    20762085
     2086        *ip_list = NULL;
     2087        *count = 0;
     2088
    20772089        DEBUG(8,("get_sorted_dc_list: attempting lookup "
    20782090                "for name %s (sitename %s) using [%s]\n",
     
    20882100                        count, lookup_type, &ordered);
    20892101        if (!NT_STATUS_IS_OK(status)) {
     2102                SAFE_FREE(*ip_list);
     2103                *count = 0;
    20902104                return status;
    20912105        }
     
    21182132
    21192133        if (!NT_STATUS_IS_OK(status)) {
     2134                SAFE_FREE(*ip_list);
     2135                *count = 0;
    21202136                return status;
    21212137        }
Note: See TracChangeset for help on using the changeset viewer.