diff options
author | Jeremy Allison <jra@samba.org> | 1997-08-28 20:59:51 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1997-08-28 20:59:51 +0000 |
commit | 45c266baaea8755f1a3c0c4c7a87eb0752848ca2 (patch) | |
tree | 328e49877c6636904de329acbdab23c36a8cc05c /source/client | |
parent | 3909576849025ed21e5282abc892ae7582ee0275 (diff) | |
download | samba-45c266baaea8755f1a3c0c4c7a87eb0752848ca2.tar.gz |
includes.h: Make sure REPLACE_GETPASS are wrapped with #ifdefs.
nmbsync.c: Make sure REPLACE_GETPASS is defined before including includes.h
clientutil.c: Catch null passwords.
Fixes for a nmbd crash bug found by Herb Lewis @ SGI.
Jermey(jallison@whistle.com)
Diffstat (limited to 'source/client')
-rw-r--r-- | source/client/clientutil.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/client/clientutil.c b/source/client/clientutil.c index 000cbba1a78..b4f0849c5fe 100644 --- a/source/client/clientutil.c +++ b/source/client/clientutil.c @@ -428,6 +428,12 @@ BOOL cli_send_login(char *inbuf, char *outbuf, BOOL start_session, BOOL use_setu else pass = (char *)getpass("Password: "); + if(pass == NULL) + { + DEBUG(0, ("cli_send_login : no password available - logon failed.\n")); + return False; + } + if (Protocol >= PROTOCOL_LANMAN1 && use_setup) { fstring pword; |