summaryrefslogtreecommitdiff
path: root/source4/libcli/smb_composite
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2005-11-06 12:24:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:45:50 -0500
commit0ed6a35f000c3cc0856adce126d08d7a26d138e3 (patch)
treef3f6219b6cf2e5e000e5609aaaae04919d541d47 /source4/libcli/smb_composite
parent08964b9de8e3e28ae15000f03c2a9f5223ff8007 (diff)
downloadsamba-0ed6a35f000c3cc0856adce126d08d7a26d138e3.tar.gz
samba-0ed6a35f000c3cc0856adce126d08d7a26d138e3.tar.bz2
samba-0ed6a35f000c3cc0856adce126d08d7a26d138e3.zip
r11533: Be a bit less intrusive
(This used to be commit f341c8b4c8e8b8096c604b5842b9b7f7c4c9653c)
Diffstat (limited to 'source4/libcli/smb_composite')
-rw-r--r--source4/libcli/smb_composite/connect.c3
1 files changed, 2 insertions, 1 deletions
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 */