1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

r11533: Be a bit less intrusive

This commit is contained in:
Volker Lendecke 2005-11-06 12:24:33 +00:00 committed by Gerald (Jerry) Carter
parent f0e4075db5
commit f341c8b4c8

View File

@ -302,7 +302,8 @@ static NTSTATUS connect_socket(struct composite_context *c,
state->transport = smbcli_transport_init(state->sock, state, True); state->transport = smbcli_transport_init(state->sock, state, True);
NT_STATUS_HAVE_NO_MEMORY(state->transport); NT_STATUS_HAVE_NO_MEMORY(state->transport);
if (state->io->in.called_name != NULL) { if (is_ipaddress(state->sock->hostname) &&
(state->io->in.called_name != NULL)) {
/* If connecting to an IP address, we might want the real name /* If connecting to an IP address, we might want the real name
* of the host for later kerberos. The called name is a better * of the host for later kerberos. The called name is a better
* approximation */ * approximation */