diff options
author | Günther Deschner <gd@samba.org> | 2012-11-23 13:19:53 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-11-23 16:30:56 +0100 |
commit | 2032f2746d70bbebd1af26a7a046eb1cc61ac175 (patch) | |
tree | 28e92a65558097eed8a59f872addcee072aa1aaf /source3 | |
parent | 8f4b871e9776245f599a302f569594aaba9d25c9 (diff) | |
download | samba-2032f2746d70bbebd1af26a7a046eb1cc61ac175.tar.gz samba-2032f2746d70bbebd1af26a7a046eb1cc61ac175.tar.bz2 samba-2032f2746d70bbebd1af26a7a046eb1cc61ac175.zip |
s3-rpc_client: lookup nametype 0x20 in rpc_pipe_open_tcp_port(). (bug #9426)
The server name type (0x20) is much more likely to be available in the name cache, as
this type gets stored by winbind itself - the primary user of the ncacn_ip_tcp
code currently.
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Nov 23 16:30:57 CET 2012 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_client/cli_pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index edb3876b70..f8c7b24208 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -2448,7 +2448,7 @@ static NTSTATUS rpc_pipe_open_tcp_port(TALLOC_CTX *mem_ctx, const char *host, result->max_xmit_frag = RPC_MAX_PDU_FRAG_LEN; result->max_recv_frag = RPC_MAX_PDU_FRAG_LEN; - if (!resolve_name(host, &addr, 0, false)) { + if (!resolve_name(host, &addr, NBT_NAME_SERVER, false)) { status = NT_STATUS_NOT_FOUND; goto fail; } |