From 0ed6a35f000c3cc0856adce126d08d7a26d138e3 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 6 Nov 2005 12:24:33 +0000 Subject: r11533: Be a bit less intrusive (This used to be commit f341c8b4c8e8b8096c604b5842b9b7f7c4c9653c) --- source4/libcli/smb_composite/connect.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/libcli/smb_composite') diff --git a/source4/libcli/smb_composite/connect.c b/source4/libcli/smb_composite/connect.c index 81a82ad427..785b0d076b 100644 --- a/source4/libcli/smb_composite/connect.c +++ b/source4/libcli/smb_composite/connect.c @@ -302,7 +302,8 @@ static NTSTATUS connect_socket(struct composite_context *c, state->transport = smbcli_transport_init(state->sock, state, True); 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 * of the host for later kerberos. The called name is a better * approximation */ -- cgit