diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-01-08 08:05:49 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:16:57 -0500 |
commit | e4dea0e64747912da899e846b944c24804772259 (patch) | |
tree | 218369eaee57db60a0a6afe573fa681e791eb62f /source | |
parent | 33b5950bec407e295b2c6139e21d062e376df330 (diff) | |
download | samba-e4dea0e64747912da899e846b944c24804772259.tar.gz samba-e4dea0e64747912da899e846b944c24804772259.tar.xz samba-e4dea0e64747912da899e846b944c24804772259.zip |
r20603: Slightly simplify logic
Diffstat (limited to 'source')
-rw-r--r-- | source/libsmb/namequery.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/libsmb/namequery.c b/source/libsmb/namequery.c index c232ad4938b..13d3517cdd6 100644 --- a/source/libsmb/namequery.c +++ b/source/libsmb/namequery.c @@ -1505,16 +1505,16 @@ static NTSTATUS get_dc_list(const char *domain, struct ip_service **ip_list, just return the list of DC's. Or maybe we just failed. */ if ( (num_addresses == 0) ) { - if ( !done_auto_lookup ) { - if (internal_resolve_name(domain, 0x1C, ip_list, count, resolve_order)) { - return NT_STATUS_OK; - } else { - return NT_STATUS_NO_LOGON_SERVERS; - } - } else { + if ( done_auto_lookup ) { DEBUG(4,("get_dc_list: no servers found\n")); return NT_STATUS_NO_LOGON_SERVERS; } + if (internal_resolve_name(domain, 0x1C, ip_list, count, + resolve_order)) { + return NT_STATUS_OK; + } else { + return NT_STATUS_NO_LOGON_SERVERS; + } } if ( (return_iplist = SMB_MALLOC_ARRAY(struct ip_service, num_addresses)) == NULL ) { |