1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r2184: use the smb.conf socket options for client code too

This commit is contained in:
Andrew Tridgell 2004-09-02 12:02:28 +00:00 committed by Gerald (Jerry) Carter
parent a6f830cfec
commit 7256945b52
2 changed files with 3 additions and 0 deletions

View File

@ -79,6 +79,7 @@ BOOL smbcli_sock_connect(struct smbcli_socket *sock, struct in_addr *ip, int por
}
set_blocking(sock->fd, False);
set_socket_options(sock->fd, lp_socket_options());
return True;
}

View File

@ -298,6 +298,8 @@ NTSTATUS dcerpc_pipe_open_tcp(struct dcerpc_pipe **p,
return NT_STATUS_PORT_CONNECTION_REFUSED;
}
set_socket_options(fd, lp_socket_options());
set_blocking(fd, False);
if (!(*p = dcerpc_pipe_init())) {