Changeset 138 for trunk/samba/source/libsmb/namequery.c
- Timestamp:
- Jul 3, 2008, 11:23:12 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/samba/source/libsmb/namequery.c
r136 r138 1836 1836 TALLOC_CTX *ctx = talloc_init("get_dc_list"); 1837 1837 1838 *ip_list = NULL; 1839 *count = 0; 1840 1838 1841 if (!ctx) { 1839 1842 return NT_STATUS_NO_MEMORY; … … 1915 1918 p = pserver; 1916 1919 while (next_token_talloc(ctx, &p, &name, LIST_SEP)) { 1917 if ( strequal(name, "*")) {1920 if (!done_auto_lookup && strequal(name, "*")) { 1918 1921 status = internal_resolve_name(domain, 0x1C, sitename, 1919 1922 &auto_ip_list, … … 2056 2059 out: 2057 2060 2061 if (!NT_STATUS_IS_OK(status)) { 2062 SAFE_FREE(return_iplist); 2063 *ip_list = NULL; 2064 *count = 0; 2065 } 2066 2058 2067 SAFE_FREE(auto_ip_list); 2059 2068 TALLOC_FREE(ctx); … … 2075 2084 enum dc_lookup_type lookup_type = DC_NORMAL_LOOKUP; 2076 2085 2086 *ip_list = NULL; 2087 *count = 0; 2088 2077 2089 DEBUG(8,("get_sorted_dc_list: attempting lookup " 2078 2090 "for name %s (sitename %s) using [%s]\n", … … 2088 2100 count, lookup_type, &ordered); 2089 2101 if (!NT_STATUS_IS_OK(status)) { 2102 SAFE_FREE(*ip_list); 2103 *count = 0; 2090 2104 return status; 2091 2105 } … … 2118 2132 2119 2133 if (!NT_STATUS_IS_OK(status)) { 2134 SAFE_FREE(*ip_list); 2135 *count = 0; 2120 2136 return status; 2121 2137 }
Note:
See TracChangeset
for help on using the changeset viewer.