diff options
Diffstat (limited to 'source3/client/clientutil.c')
-rw-r--r-- | source3/client/clientutil.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/client/clientutil.c b/source3/client/clientutil.c index a09832a68b..2da0fbb215 100644 --- a/source3/client/clientutil.c +++ b/source3/client/clientutil.c @@ -583,6 +583,9 @@ BOOL cli_send_login(char *inbuf,char *outbuf,BOOL start_session,BOOL use_setup, else pass = (char *)getpass("Password: "); + if(!pass) + pass = ""; + pstrcpy(smb_login_passwd, pass); /* use a blank username for the 2nd try with a blank password */ |