Changeset 745 for trunk/server/source3/libsmb/namequery_dc.c
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/source3/libsmb/namequery_dc.c
r480 r745 7 7 Copyright (C) Andrew Bartlett 2002 8 8 Copyright (C) Gerald Carter 2003 9 9 10 10 This program is free software; you can redistribute it and/or modify 11 11 it under the terms of the GNU General Public License as published by 12 12 the Free Software Foundation; either version 3 of the License, or 13 13 (at your option) any later version. 14 14 15 15 This program is distributed in the hope that it will be useful, 16 16 but WITHOUT ANY WARRANTY; without even the implied warranty of 17 17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 18 GNU General Public License for more details. 19 19 20 20 You should have received a copy of the GNU General Public License 21 21 along with this program. If not, see <http://www.gnu.org/licenses/>. … … 24 24 25 25 #include "includes.h" 26 #include "libads/sitename_cache.h" 27 #include "ads.h" 28 #include "../librpc/gen_ndr/nbt.h" 26 29 27 30 /********************************************************************** … … 46 49 Find the name and IP address for a server in the realm/domain 47 50 *************************************************************************/ 48 51 49 52 static bool ads_dc_name(const char *domain, 50 53 const char *realm, … … 99 102 } 100 103 101 #ifdef HAVE_ KRB5104 #ifdef HAVE_ADS 102 105 if (is_our_primary_domain(domain) && (ads->config.flags & NBT_SERVER_KDC)) { 103 106 if (ads_closest_dc(ads)) { … … 174 177 175 178 for (i = 0; i < count; i++) { 176 if (is_zero_addr( (struct sockaddr *)&ip_list[i].ss))179 if (is_zero_addr(&ip_list[i].ss)) 177 180 continue; 178 181
Note:
See TracChangeset
for help on using the changeset viewer.