summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-01-03 18:16:08 +0100
committerVolker Lendecke <vl@samba.org>2009-01-03 19:22:06 +0100
commitfafb9ecc613914ee49bfdb4c1eb249fcbbcf25f7 (patch)
tree46fb8c81e7fb5b715f0405a08e688677af6d0479 /source3/libsmb
parentb6138bf4f22e7a093d35e2f23992595acae55068 (diff)
downloadsamba-fafb9ecc613914ee49bfdb4c1eb249fcbbcf25f7.tar.gz
samba-fafb9ecc613914ee49bfdb4c1eb249fcbbcf25f7.tar.bz2
samba-fafb9ecc613914ee49bfdb4c1eb249fcbbcf25f7.zip
open_socket_out is always used with SOCK_STREAM, remove argument "type"
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/cliconnect.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 5892bdc859..44899e3b1a 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -1499,10 +1499,8 @@ bool cli_session_request(struct cli_state *cli,
putip((char *)&dest_ip,cli->inbuf+4);
in_addr_to_sockaddr_storage(&cli->dest_ss, dest_ip);
- cli->fd = open_socket_out(SOCK_STREAM,
- &cli->dest_ss,
- port,
- LONG_CONNECT_TIMEOUT);
+ cli->fd = open_socket_out(&cli->dest_ss, port,
+ LONG_CONNECT_TIMEOUT);
if (cli->fd == -1)
return False;
@@ -1589,11 +1587,11 @@ NTSTATUS cli_connect(struct cli_state *cli,
} else {
/* try 445 first, then 139 */
uint16_t port = cli->port?cli->port:445;
- cli->fd = open_socket_out(SOCK_STREAM, &cli->dest_ss,
- port, cli->timeout);
+ cli->fd = open_socket_out(&cli->dest_ss, port,
+ cli->timeout);
if (cli->fd == -1 && cli->port == 0) {
port = 139;
- cli->fd = open_socket_out(SOCK_STREAM, &cli->dest_ss,
+ cli->fd = open_socket_out(&cli->dest_ss,
port, cli->timeout);
}
if (cli->fd != -1) {