r6388: BUG 2626: ensure that the calling_name is set to something after parsing smb...
authorGerald Carter <jerry@samba.org>
Tue, 19 Apr 2005 14:03:08 +0000 (14:03 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:56:39 +0000 (10:56 -0500)
source/client/client.c

index be17488919df38f08ad368f97dca275a9dd678b3..9cb0d15a6847288bec15e94aa73207c4a64bc579 100644 (file)
@@ -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));