svn commit: samba r11533 - in branches/SAMBA_4_0/source/libcli/smb_composite: .

vlendec at samba.org vlendec at samba.org
Sun Nov 6 12:24:34 GMT 2005


Author: vlendec
Date: 2005-11-06 12:24:33 +0000 (Sun, 06 Nov 2005)
New Revision: 11533

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11533

Log:
Be a bit less intrusive
Modified:
   branches/SAMBA_4_0/source/libcli/smb_composite/connect.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/smb_composite/connect.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/smb_composite/connect.c	2005-11-06 12:19:34 UTC (rev 11532)
+++ branches/SAMBA_4_0/source/libcli/smb_composite/connect.c	2005-11-06 12:24:33 UTC (rev 11533)
@@ -302,7 +302,8 @@
 	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 */



More information about the samba-cvs mailing list