summaryrefslogtreecommitdiff
path: root/source3/param/loadparm.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-05-11 14:54:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:51:32 -0500
commit348b01ff7734c5db7ce37e0fbeeb0de5f675950f (patch)
tree23b130e3ed04014b30f0bf5989f009272d71d445 /source3/param/loadparm.c
parent372dac6c982ac52926c268df71bf6fb4ca2d155b (diff)
downloadsamba-348b01ff7734c5db7ce37e0fbeeb0de5f675950f.tar.gz
samba-348b01ff7734c5db7ce37e0fbeeb0de5f675950f.tar.bz2
samba-348b01ff7734c5db7ce37e0fbeeb0de5f675950f.zip
r647: fix for setting the called name to by our IP if the called name was *SMBSERVER and *SMBSERV -- fixes issue with connecting to printers via \ip.ad.dr.ess\printer UNC path
(This used to be commit 8ee268f0ed0c2f75ded9c2ddd66e0953f443c79e)
Diffstat (limited to 'source3/param/loadparm.c')
-rw-r--r--source3/param/loadparm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index b378342372..30fbc9713e 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -4252,7 +4252,7 @@ const char *get_called_name(void)
static fstring called_name;
if (!*local_machine) {
- fstrcpy(called_name, get_my_primary_ip());
+ fstrcpy(called_name, client_socket_addr());
DEBUG(8,("get_called_name: assuming that client used IP address [%s] as called name.\n",
called_name));
return called_name;