summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-09-12 20:56:13 +0200
committerVolker Lendecke <vl@samba.org>2011-09-13 11:00:13 +0200
commitf55f4b8ce5b8d925304ae27e3e24283f4c22f3b3 (patch)
tree1bb893a7d05fbaae6b91537dbe16aa94f45ff6a5 /source3/libsmb
parent6344482f00fa0ca6887fc7a5fe145df74687c6a7 (diff)
downloadsamba-f55f4b8ce5b8d925304ae27e3e24283f4c22f3b3.tar.gz
samba-f55f4b8ce5b8d925304ae27e3e24283f4c22f3b3.tar.bz2
samba-f55f4b8ce5b8d925304ae27e3e24283f4c22f3b3.zip
s3: Disentangle resolve_name() a bit
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/namequery.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c
index dca740d3e6..10c19de3c2 100644
--- a/source3/libsmb/namequery.c
+++ b/source3/libsmb/namequery.c
@@ -2699,6 +2699,7 @@ bool resolve_name(const char *name,
struct ip_service *ss_list = NULL;
char *sitename = NULL;
int count = 0;
+ NTSTATUS status;
if (is_ipaddress(name)) {
return interpret_string_addr(return_ss, name, AI_NUMERICHOST);
@@ -2706,9 +2707,10 @@ bool resolve_name(const char *name,
sitename = sitename_fetch(lp_realm()); /* wild guess */
- if (NT_STATUS_IS_OK(internal_resolve_name(name, name_type, sitename,
- &ss_list, &count,
- lp_name_resolve_order()))) {
+ status = internal_resolve_name(name, name_type, sitename,
+ &ss_list, &count,
+ lp_name_resolve_order());
+ if (NT_STATUS_IS_OK(status)) {
int i;
if (prefer_ipv4) {