From: Gerald Carter Date: Tue, 19 Apr 2005 14:03:08 +0000 (+0000) Subject: r6388: BUG 2626: ensure that the calling_name is set to something after parsing smb... X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~4927 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=97c68ec1e86c1de44fa1ab6e5a9d7f58b2843a34;p=thirdparty%2Fsamba.git r6388: BUG 2626: ensure that the calling_name is set to something after parsing smb.conf (if not set via -n) --- 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));