summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/include/client.h1
-rw-r--r--source3/libsmb/cliconnect.c1
-rw-r--r--source3/libsmb/clientgen.c10
-rw-r--r--source3/libsmb/proto.h1
4 files changed, 0 insertions, 13 deletions
diff --git a/source3/include/client.h b/source3/include/client.h
index b01136be37..eada792403 100644
--- a/source3/include/client.h
+++ b/source3/include/client.h
@@ -51,7 +51,6 @@ struct cli_state {
* A list of subsidiary connections for DFS.
*/
struct cli_state *prev, *next;
- int port;
int fd;
uint16 cnum;
uint16 pid;
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 515bc3ff07..e5d8700d59 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -2884,7 +2884,6 @@ NTSTATUS cli_connect_nb(const char *host, struct sockaddr_storage *pss,
goto fail;
}
cli->fd = fd;
- cli->port = port;
length = sizeof(cli->src_ss);
ret = getsockname(fd, (struct sockaddr *)(void *)&cli->src_ss,
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 2380ceb32c..bcb1215579 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -51,15 +51,6 @@ unsigned int cli_set_timeout(struct cli_state *cli, unsigned int timeout)
}
/****************************************************************************
- Change the port number used to call on.
-****************************************************************************/
-
-void cli_set_port(struct cli_state *cli, int port)
-{
- cli->port = port;
-}
-
-/****************************************************************************
convenience routine to find if we negotiated ucs2
****************************************************************************/
@@ -191,7 +182,6 @@ struct cli_state *cli_initialise_ex(int signing_state)
if (!cli->dfs_mountpoint) {
goto error;
}
- cli->port = 0;
cli->fd = -1;
cli->raw_status = NT_STATUS_INTERNAL_ERROR;
cli->cnum = -1;
diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h
index 151df40436..abb201a619 100644
--- a/source3/libsmb/proto.h
+++ b/source3/libsmb/proto.h
@@ -154,7 +154,6 @@ bool cli_check_msdfs_proxy(TALLOC_CTX *ctx,
int cli_set_message(char *buf,int num_words,int num_bytes,bool zero);
unsigned int cli_set_timeout(struct cli_state *cli, unsigned int timeout);
-void cli_set_port(struct cli_state *cli, int port);
void cli_setup_packet_buf(struct cli_state *cli, char *buf);
NTSTATUS cli_set_domain(struct cli_state *cli, const char *domain);
NTSTATUS cli_set_username(struct cli_state *cli, const char *username);