summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-05-28 20:39:54 +0200
committerVolker Lendecke <vl@samba.org>2011-05-28 20:50:09 +0200
commit57ae32794f841365a73f22df3b872eb001c21abc (patch)
tree6bb6f85381b746b8c7d81be7dcf9911cb1c5e123 /source3/libsmb
parentc430b57ce44e67d3eddc0d2fffaa78b9b0f36af5 (diff)
downloadsamba-57ae32794f841365a73f22df3b872eb001c21abc.tar.gz
samba-57ae32794f841365a73f22df3b872eb001c21abc.tar.bz2
samba-57ae32794f841365a73f22df3b872eb001c21abc.zip
s3: Add called name_type param to cli_connect_nb
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/cliconnect.c5
-rw-r--r--source3/libsmb/proto.h2
2 files changed, 3 insertions, 4 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 60637451d0..3921fbcb1c 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -3151,13 +3151,12 @@ fail:
}
NTSTATUS cli_connect_nb(const char *host, struct sockaddr_storage *pss,
- uint16_t port, const char *myname,
+ uint16_t port, int name_type, const char *myname,
int signing_state, struct cli_state **pcli)
{
TALLOC_CTX *frame = talloc_stackframe();
struct cli_state *cli;
NTSTATUS status = NT_STATUS_NO_MEMORY;
- int name_type = 0x20;
int fd = -1;
char *desthost;
char *p;
@@ -3229,7 +3228,7 @@ NTSTATUS cli_start_connection(struct cli_state **output_cli,
NTSTATUS nt_status;
struct cli_state *cli;
- nt_status = cli_connect_nb(dest_host, dest_ss, port, my_name,
+ nt_status = cli_connect_nb(dest_host, dest_ss, port, 0x20, my_name,
signing_state, &cli);
if (!NT_STATUS_IS_OK(nt_status)) {
DEBUG(10, ("cli_connect_nb failed: %s\n",
diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h
index 3a34486c04..7a8f5677f6 100644
--- a/source3/libsmb/proto.h
+++ b/source3/libsmb/proto.h
@@ -74,7 +74,7 @@ NTSTATUS cli_connect(struct cli_state *cli,
const char *host,
struct sockaddr_storage *dest_ss);
NTSTATUS cli_connect_nb(const char *host, struct sockaddr_storage *pss,
- uint16_t port, const char *myname,
+ uint16_t port, int name_type, const char *myname,
int signing_state, struct cli_state **pcli);
NTSTATUS cli_start_connection(struct cli_state **output_cli,
const char *my_name,