1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

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

(This used to be commit 7256945b52)
This commit is contained in:
Andrew Tridgell 2004-09-02 12:02:28 +00:00 committed by Gerald (Jerry) Carter
parent c6dd8f9c9a
commit b990e9a97b
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())) {