summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-04-19 14:03:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:39 -0500
commit97c68ec1e86c1de44fa1ab6e5a9d7f58b2843a34 (patch)
treece30bfe0694da4cf160207780a29f18bc532692c
parent81f30bf5985f5c6dc8399c4695dfa6f14140fde1 (diff)
downloadsamba-97c68ec1e86c1de44fa1ab6e5a9d7f58b2843a34.tar.gz
samba-97c68ec1e86c1de44fa1ab6e5a9d7f58b2843a34.tar.xz
samba-97c68ec1e86c1de44fa1ab6e5a9d7f58b2843a34.zip
r6388: BUG 2626: ensure that the calling_name is set to something after parsing smb.conf (if not set via -n)
-rw-r--r--source/client/client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/client/client.c b/source/client/client.c
index be17488919d..9cb0d15a684 100644
--- a/source/client/client.c
+++ b/source/client/client.c
@@ -3472,6 +3472,8 @@ static int do_message_op(void)
if ( strlen(calling_name) != 0 )
set_global_myname( calling_name );
+ else
+ pstrcpy( calling_name, global_myname() );
if(poptPeekArg(pc)) {
pstrcpy(service,poptGetArg(pc));